{% for step in steps %} {% set x = loop.index0 * 180 + 70 %} {{ step.label }} {% if step.sub %} {{ step.sub }} {% endif %} {% if not loop.last %} {% endif %} {% endfor %}