23 lines
341 B
Text
23 lines
341 B
Text
|
|
||
|
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
|