Can we use if tag in for tag?

34 views
Skip to first unread message

Austin Lee

unread,
Sep 9, 2013, 10:04:00 PM9/9/13
to h2o-temp...@googlegroups.com
Can we use if tag in for tag? Like this

{% for item in array %}
    {% if item == 'item' %}hello, world!{% endif %}
{% endfor %}

I use like this, but h2o throw exception.....what should i do to get the function?
Reply all
Reply to author
Forward
0 new messages