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
data like thie:
[{ name: 'name', subArr: [{ name: 'name1', code: 'code1' }] }]
template like this:
{{#each items}} {{ name }} {{#each subArr}} {{ name }} {{/each}} {{/each}} {{#each items}} {{ name }} {{#each subArr}} {{ code }} {{/each}} {{/each}}
render result in the second "each" block, subArr.code will not be rendered.
The text was updated successfully, but these errors were encountered:
Any update?
Sorry, something went wrong.
I just tested this and it seems to work fine: https://handlebarsjs.com/playground.html#format=1¤tExample=%7B%22template%22%3A%22%7B%7B%23each%20items%7D%7D%5Cn%20%20%7B%7B%20name%20%7D%7D%5Cn%20%20%7B%7B%23each%20subArr%7D%7D%5Cn%20%20%7B%7B%20name%20%7D%7D%5Cn%20%20%7B%7B%2Feach%7D%7D%5Cn%7B%7B%2Feach%7D%7D%5Cn%5Cn%7B%7B%23each%20items%7D%7D%5Cn%20%20%7B%7B%20name%20%7D%7D%5Cn%20%20%7B%7B%23each%20subArr%7D%7D%5Cn%20%20%7B%7B%20code%20%7D%7D%5Cn%20%20%7B%7B%2Feach%7D%7D%5Cn%7B%7B%2Feach%7D%7D%22%2C%22partials%22%3A%5B%5D%2C%22input%22%3A%22%7B%5Cn%20%20items%3A%20%5B%7B%5Cn%20%20%20%20name%3A%20'name'%2C%5Cn%20%20%20%20subArr%3A%20%5B%7B%5Cn%20%20%20%20%20%20name%3A%20'name1'%2C%5Cn%20%20%20%20%20%20code%3A%20'code1'%5Cn%20%20%20%20%7D%5D%5Cn%20%20%7D%5D%5Cn%7D%22%2C%22output%22%3A%22%20%20name%5Cn%20%20name1%5Cn%5Cn%20%20name%5Cn%20%20code1%5Cn%22%2C%22preparationScript%22%3A%22%22%2C%22handlebarsVersion%22%3A%224.7.7%22%7D
Are you using the latest version?
No branches or pull requests
data like thie:
template like this:
render result in the second "each" block, subArr.code will not be rendered.
The text was updated successfully, but these errors were encountered: