Skip to content
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

xlsx: can not complete generation with nested loop and condition #1114

Open
bjrmatos opened this issue Dec 11, 2023 · 0 comments
Open

xlsx: can not complete generation with nested loop and condition #1114

bjrmatos opened this issue Dec 11, 2023 · 0 comments

Comments

@bjrmatos
Copy link
Collaborator

bjrmatos commented Dec 11, 2023

using a template with nested loop and wrapping condition like this

Screenshot 2023-12-11 at 12  10 47@2x

makes the render to fail, because invalid handlebars is found.

this is caused by the {{#if }} that wraps the nested loop {{#each this.users}} ends in the middle of some internal handlebars block helpers we do. we will need to check for the usage of block helper calls inside loops and handle it in a way that does not cause bad helper calls.
export-xlsx-nested-each-does-not-work-with-if.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant