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
![Screenshot 2023-03-21 at 1 38 16 pm](https://user-images.githubusercontent.com/6051914/226506053-9d5dacc5-f9fc-4398-a1d2-afc2145227d5.png)
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: