-
Notifications
You must be signed in to change notification settings - Fork 33
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
Pass through namespaces option #24
Conversation
+1 to this |
@zimmen Any progress / thoughts on this? Thanks |
@zimmen I'm with James here - could this be approved please? We really need to use this feature in production and it would be most helpful! Thanks |
Sure, i'll get on it this evening.
|
@zimmen that's great - thank you! |
@zimmen @dennisreimann Thanks a lot! Some documentation would also be great. Ive manually applied the commit while I wait but I can see where to set the namespace. |
I'll have to look into this myself first. As i'm not using the namespaces myself at the moment.
|
@zimmen hi - did you manage to take a look at this one? thanks |
@dennisreimann how did you set namespaces in your gulp task? |
@linnett just like the other options: .pipe(twig({
namespaces: {
a: 'a',
b: 'b'
}
})) |
@dennisreimann thanks - will give it a try |
@dennisreimann Did you have this working? Ive manually applied your path and tried the following (and a few syntax variations) but I cant get it working: Old path:
New settings and path:
|
@zimmen do you know when this will be included and documented? |
I do not make it work either :(. My options into the gulp tasks are : .pipe(twig({
namespaces: {
styleguide: 'src/templates/ts-components'
}
})) And then I tried several synthax for an include of the file Like into symfony projects :{% include '@styleguide/section-header.twig' %} Like documented into the twig.js wiki :{% include 'styleguide::section-header.twig' %} I also tried into the config to setup the None of thoses tries worked, any ideas ? Thanks a lot |
any updates ? :( |
Where need options! Please merge this commit!!! |
Merged. Along with another PR. |
Can we have the documentation updated for this please? |
It is basically passing it along to twig.js itself. See https://github.com/twigjs/twig.js/wiki#namespaces I'll put that snippet in the docs as well |
Thanks - we'll give it a go On 27 Oct 2016 10:34 am, "Simon" notifications@github.com wrote:
|
See https://github.com/justjohn/twig.js/wiki#namespaces