-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Partials don't work with subexpressions (like they should?) #933
Comments
The sexpr object that you are seeing in the yy file is not the same thing as the nested I need to think about it a bit, but I don't see anything inherently wrong with allowing dynamic partial evaluation as you are trying here. |
👍 for dynamic partial evaluation, e.g. as in dust.js |
Uses the subexpression syntax to allow for dynamic partial lookups. Ex: ``` {{> (helper) }} ``` Fixes #933
Closing in favor of #941 |
Awesome! 👍 |
It seems to me, that according to src/handlebars.yy, the partial tag (
{{> ...}}
) should support subexpressions:OPEN_PARTIAL sexpr CLOSE ...
But with a freshly checked out handlebars repository, and
testme.js
in the same folder:node testme.js
gives:Is this a bug or a comprehension-error on my part?
The text was updated successfully, but these errors were encountered: