-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support per-file name
option
#192
Comments
I am doing some maintenance on the lib currently. I'll handle this issue as part of it. |
The gulp-data plugin is not designed for passing options through your pipeline. The way that this should probably be solved inside gulp-pug is to make the |
I have misunderstood the issue. Agreed that per-file configuration can be achieved by accepting a function. |
@demurgos I had misunderstood it as well until I dug into pug's |
So, is there any possibility to derive the template name from the filename then? |
Yes
|
OK. I could probably provide a pull request for that ... |
This library already supports receiving Pug locals from |
name
option
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
The text was updated successfully, but these errors were encountered: