-
Notifications
You must be signed in to change notification settings - Fork 76
Too many nested {{else if}} causes compile error #313
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
Comments
I'm still running into issues that I believe are stemming back to this problem. More recently, I've encountered errors that state that there is an unclosed |
When you compile the template with flag In the mean time, the provided template can not be compiled by handlebars.js, neither. Please fix the template first. |
Close this. Feel free to reopen this if you find any related issue, thanks. |
@zordius, thanks for your reply as it helped me notice that the code snippet in my original post did contain some unintended typos as a byproduct of trying to replicate a simplified version of my actual use case. These typos were not consistent with my actual code, so I updated the code snippet that I shared with you above to remove the extraneous |
The Handlebars Code:
This doesn't work:
But this works:
The Issue:
I keep running into a compilation error that seems to be caused by too many nested
{{else if}}
statements. The error that gets thrown says a previous{{else if}}
is unclosed when in fact it's followed by another{{else if}}
or{{else}}
. I've confirmed that I do not run into the same error if using nested{{#if}}...{{else}}...{{/if}}
expressions.The text was updated successfully, but these errors were encountered: