when using gulp pug like this
return gulp.src('./client/templates/*.pug')
.pipe(data(function(file) {
return {
name: `__${path.basename(file.path, '.pug')}`
};
}))
.pipe(pug({
client: true,
...
}))
the options returned from the gulp-data function are not passed through to the pug.compileClient. Especially, in my usecase, the template name is not set to the filename but to template
when using gulp pug like this
the options returned from the gulp-data function are not passed through to the pug.compileClient. Especially, in my usecase, the template name is not set to the filename but to
template