optional links (or other wrapper elements) in jade are tedious
I find myself repeatedly writing code like this:
if foo
+bar()
else
a(href=someLink)
+bar()
is there any better way? or at least a way to turn that into a mixin that
takes the optional part and the bar()?
No comments:
Post a Comment