Closed YamiOdymel closed 8 years ago
Okay I found it here: https://github.com/Talesoft/tale-jade/issues/100
The usage is:
li(class=($var ? "className" : 'className'))
li(class=($var ? "className" : 'className'), class=($var2 ? "className" : 'className'))
In other template engine I can simply do:
to toggle the class based on my variable, how do I do this in tale-jade?