pixsy/node_modules/pug/test/cases/mixins.pug

33 lines
420 B
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
mixin comment(title, str)
.comment
h2= title
p.body= str
mixin comment (title, str)
.comment
h2= title
p.body= str
#user
h1 Tobi
.comments
+comment('This',
(('is regular, javascript')))
mixin list
ul
li foo
li bar
li baz
body
+list()
+ list()
mixin foobar(str)
div#interpolation= str + 'interpolated'
- var suffix = "bar"
+#{'foo' + suffix}('This is ')