Hi there,
I have meet a strange behavior in volt. I have this:
{% if some_var %}
{% for item in some_var['items'] %}
{% for object in item %}
{% include 'some/partial' with {'object':object} %}
{% endfor %}
{% endfor %}
{% else%}
Nothing here
{% endif %}
Throws an exception : Phalcon\Mvc\View\Exception: Unexpected ENDIF
If i remove the second FOR, this works:
{% if some_var %}
{% for item in some_var['items'] %}
// Do some stuff
{% endfor %}
{% else%}
Nothing here
{% endif %}
Any idea ?