Support per-file `name` option
See original GitHub issuewhen 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Change your Google Account picture, name & other info
Edit your name You can change your name as many times as you want. On your Android phone or tablet, open your device's...
Read more >Change the display name that email recipients see - Microsoft ...
Change the display name that email recipients see · In Outlook, choose File > Account Settings > Account Settings. Options available when you...
Read more >Change the name of your macOS user account and home folder
Click Users & Groups in the sidebar. Press and hold the Control key on your keyboard, then click the name of the account...
Read more >Profile Manager - Create, remove or switch Firefox profiles
Enter the new name for the profile. Type in the new profile name, and click on OK.
Read more >Change preferred name on My T-Mobile
You can give your lines preferred names to help you tell who uses which line. ... Select your name at the top right...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This library already supports receiving Pug locals from
gulp-data
. I’m renaming the issue to better reflect the actual problem.OK. I could probably provide a pull request for that …