I\'m trying to write out some dynamic CSS using Jade, like so:
style(type=\'text/css\') each item in colors .#{item.class} { background-color :
I ran into a similar issue where I wanted to add a specific class to the body tag depending on the route, similar to what I've done in PHP. In the end, I used jade's template inheritance to achieve a similar result.