pugjs/pug

compileFileClient name option is not working

Closed this issue · 1 comments

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.

Never mind, I thought only one function was meant to be returned