问题
I want to have a mixin like this:
mixin foo(name)
style
include styles/#{name}.css
However this syntax is invalid. Is there any way to parameterise a Jade include like this?
回答1:
Currently not supported in version 2 probably will be.
来源:https://stackoverflow.com/questions/27881344/parameterised-jade-includes