-
Notifications
You must be signed in to change notification settings - Fork 76
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
Template variables overridden by helper #65
Comments
|
Yes, it does make sense. Behavior should be aligned with handlebars.js, completely agree. Variables can be accessed using |
Based on this test : http://jsfiddle.net/TY8cJ/1/ custom helper > default helper > variable This behavior will be applied to lightncandy later. |
After I review the code of lightncandy deeply , the current order is compileBlockCustomHelper > compileBlockBegin > compileCustomHelper > compileVariable So the behavior already same with handlebars.js . No more fix required, and close this. Thanks. |
Hello @zordius
I just noticed the following: If I have a
{{term_link}}
helper and I also passterm_link
in the template named arguments, the value is overridden by the helper.I consider the variable should be prioritized instead of the helper as long as it is a named argument.
What do you think?
The text was updated successfully, but these errors were encountered: