-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Get page variable in nested block helpers #62
Comments
Or in other words, how do I programmatically get the root context from within a helper. |
The prettify helper shouldn't be changing context, so I'm not sure why that's happening. When I get a chance this evening I'll try to see why that's happening. @doowb any thoughts?
and
This is an ongoing issue that has been raised with Handlebars. handlebars-lang/handlebars.js#392. That being said, on the topic of context, to date I can't think of anything we've wanted to achieve where we weren't able to find a way around it. so we'll get this figured out. |
oh, I should have mentioned that if necessary we can implement prettify into Assemble's core. i18n is an important part of your project, and IMO if the helper is causing an issue that isn't resolvable otherwise, that's as compelling of a reason as I need to do it. of course, the handlebars context issue won't go away in general, but at least it won't a problem here. |
Through the console I found that the context for prettify is the grunt parameters for prettify |
I'm assuming this has been resolved? @LaurentGoderre please reopen if necessary. |
Someone discovered an issue with the i18n task that I'm trying to resolve. Given the current code:
The i18n fails because it no longer sees the language parameter of the page. I'm wondering, how do I get access to the page regardless of where the block is.
The text was updated successfully, but these errors were encountered: