compileFileClient name option is not working
Closed this issue · 1 comments
meircarlos commented
Pug Version: 3.0.2
Node Version: 18
Input JavaScript Values
const templatePath = `${__dirname}/templates/test-report.html.pug`;
const options = { name: 'testReportTemplate' };
const compiledTemplate = pug.compileFileClient(templatePath, options)
The expected compiledTemplate should have a function named 'testReportTemplate' however it's returning a function named 'pug_attr'.
It happens with any template.
meircarlos commented
Never mind, I thought only one function was meant to be returned