initial
This commit is contained in:
32
node_modules/pug/test/cases/mixins.pug
generated
vendored
Normal file
32
node_modules/pug/test/cases/mixins.pug
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
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 ')
|
||||
Reference in New Issue
Block a user