{% for element in elements %} {% for attribute, label in attributes %} {% if loop.index == 1 %} {% include "_elements/element" %} {% else %} {% set value = attribute(element, attribute) %} {{ value }} {% endif %} {% endfor %} {% endfor %}