{% for item in items %}
Item {{ item }}
{% endfor %} {% if mybutton_was_pressed %}
mybutton was pressed
{% endif %}