-
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
Unable to access #each helper variables in child scope #1760
Comments
Figured it out: |
@steveklett If you have time, it would be nice if you could add documentation for this in https://github.com/handlebars-lang/docs. |
I am facing an error while trying to run |
@jaylinski shall I add documentation for it? |
@satyajitnayk Yes, that would be nice. |
I can't find anything in the documentation that says I should be able to use
../@last
but I also don't understand why I can't, or why it throws an error.The documentation states:
Template:
with data:
Throws error (using http://tryhandlebarsjs.com):
There is a specific scenario I have where I can't find a way to implement the use case without being able to access the
#each
helper variables from a child scope:https://stackoverflow.com/questions/67994959/how-to-avoid-trailing-comma-when-defining-json-array-by-nested-enumeration-of-hi
-Steve
The text was updated successfully, but these errors were encountered: