{%- for event in events %} {%- if event.start <= cutoff or not event.recurring %} {% include 'calendar_event.j2' %} {%- endif %} {%- endfor %}