{% load helpers %} {% with current_page=items.number %} {% for column in columns %} {% if column.1 %} {{ column.0 }} {% endif %} {% if not column.1 %} {{ column.0 }} {% endif %} {% endfor %} {% endwith %}