--TEST-- "for" tag adds a loop variable to the context locally --TEMPLATE-- {% for item in items %} {% endfor %} {% if loop is not defined %}WORKS{% endif %} --DATA-- return array('items' => array()) --EXPECT-- WORKS
info at phpclasses dot org