question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support per-file `name` option

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
demurgoscommented, May 9, 2019

This library already supports receiving Pug locals from gulp-data. I’m renaming the issue to better reflect the actual problem.

0reactions
wiggissercommented, May 9, 2019

OK. I could probably provide a pull request for that …

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found