Pass in a list called 'list' to this template to test behaviour...
{{ item }} | {% cycle 'row1' 'row2' 'row3' %} |
{{ item }} | {% cycle 'row1' 'row2' 'row3' as rownum %} |
{% cycle rownum %}
{% cycle rownum %}
{% cycle rownum %}
{{ item }} | {% cycle 'row1' 'row2' 'row3' as rownum 0 %} | {{ rownum }} |
{% cycle rownum %}
{% cycle rownum %}
{% cycle rownum %}
{{ item }} | {% cycle 'row1' 'row2' 'row3' as rownum 1 %} | {{ rownum }} |
{% cycle rownum %}
{% cycle rownum %}
{% cycle rownum %}
{{ item }} | {% cycle 'row1' 'row2' 'row3' as rownum %} |
{% cycle rownum %}
{% cycle rownum %}
{% cycle rownum %}