With this code:
{% for o in [1,2,3] %} {% cycle \'row1\' \'row2\' %} {% endf
We can use split method on str object :
page.html :
{% with '1 2 3' as list %} {% for i in list.split %} {{ i }} {% endfor %} {% endwith %}
Results :
1 2 3