You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes can't be used dynamically in any way. You need to wrap the code in a mixing, include the file before the each and call the mixin inside the each statement
Here is a.pug
each petName in pets
include b.pug
here is test.pug
p= petName
here is output over browser
empty 2 P tags
and if I use variable using #{variablename}
it prints
Please help me don't know what's wrong
Pug Version: 3.0.2
Node Version: 14.21.3
using webpack html-webpack-plugin to rednder pug
Please let me know if you need additional information
The text was updated successfully, but these errors were encountered: