Open satyendera opened 1 year ago
Here is a.pug
here is test.pug p= petName
here is output over browser empty 2 P tags
<p></p> <p></p>
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
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
each
Here is a.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