我试图用Jade写出一些动态的CSS,就像这样:
- style(type='text/css')
- each item in colors
- .#{item.class} { background-color : #{item.background}; color: #{item.foreground}; }
但是这会给出以下错误:
- ReferenceError: media='print')
- 7| style(type='text/css')
- > 8| - for(var item in colors)
- 9| .#{item.class} { background-color : #{item.background}; color: #{item.foreground}; }
- 10| block Content
- 11| include scheduleTemplate
- item is not defined