Jade template for each cycle to include a jade file

In the jade template engine: -I can do each cycle to include files? For instance,

each val in ['file1', 'file2', 'file3']
     include val
+4
source share
1 answer

"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

+2
source

Source: https://habr.com/ru/post/1537003/


All Articles