Jade template each loop to include jade file

北城余情 提交于 2019-12-12 11:23:45

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!