I\'m creating a catalogue, where there is a list of items of undefined length. I want to spit it out in rows with three columns each. So I have the following html:
Sorry don't have enough reputation to just comment jpic's answer(the accepted one), for Jinja2, use:
{% for item in items %} {{ item }} {% if loop.index is divisibleby(3) %} {% endif %} {% endfor %}
details are here.