I have a volt template that's throwing an error (Unexpected ENDIF in...line 16) and I can't understand why:
{% if 0 %}
{% for item1 in [1,2,3] %}
{% for item2 in [1,2,3] %}
{% endfor %}
{% endfor %}
{% endif %}
{% if 0 %}
{% elseif 1 %}
{% endif %}
Note that the error's line number (16) is referencing the "elseif" statement. Removing either the second for loop (for item2...) or the elseif statement (elseif 1) fixes the issue.
I'm new to phalcon and I'm probably missing something obvious, buy I just can't figure this out. What am I missing here?
Thanks!
-Jeff