问题
In the jade template engine: -can i do a each loop to include files? For e.g.
each val in ['file1', 'file2', 'file3']
include val
回答1:
"You are trying to include files dynamically through a loop. Dynamic inclusion is not supported."
From the Jade issues section on Github: https://github.com/pugjs/jade/issues/1924
来源:https://stackoverflow.com/questions/23141365/jade-template-each-loop-to-include-jade-file