{% if actions.main %} {% for main_action in actions.main %} {# This is a fake 'for' loop ; we know there should be only one main_action. #} {{ main_action.label }} {% if main_action.confirm %} {{ main_action.confirm }} {% endif %} {% endfor %} {% endif %}