diff options
Diffstat (limited to 'node_modules/jade/testing/index.jade')
-rw-r--r-- | node_modules/jade/testing/index.jade | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/jade/testing/index.jade b/node_modules/jade/testing/index.jade new file mode 100644 index 000000000..1032c5faf --- /dev/null +++ b/node_modules/jade/testing/index.jade @@ -0,0 +1,22 @@ + +tag = 'p' +foo = 'bar' + +#{tag} value +#{tag}(foo='bar') value +#{foo ? 'a' : 'li'}(something) here + +mixin item(icon) + li + if attributes.href + a(attributes) + img.icon(src=icon) + block + else + span(attributes) + img.icon(src=icon) + block + +ul + +item('contact') Contact + +item(href='/contact') Contact |