Skip to content

Support per-file name option #192

@wiggisser

Description

@wiggisser

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions