mixins.pug 420 B

1234567891011121314151617181920212223242526272829303132
  1. mixin comment(title, str)
  2. .comment
  3. h2= title
  4. p.body= str
  5. mixin comment (title, str)
  6. .comment
  7. h2= title
  8. p.body= str
  9. #user
  10. h1 Tobi
  11. .comments
  12. +comment('This',
  13. (('is regular, javascript')))
  14. mixin list
  15. ul
  16. li foo
  17. li bar
  18. li baz
  19. body
  20. +list()
  21. + list()
  22. mixin foobar(str)
  23. div#interpolation= str + 'interpolated'
  24. - var suffix = "bar"
  25. +#{'foo' + suffix}('This is ')