# Teaching calendar for {{ period }} {{ year }} {%- for week, date in data.items() %} {% if date|isteaching %}Week {{ week|pad(2) }}:{% elif date|isbreak %}Break :{% else %}WTF???{% endif %} {{ date.isoformat() }} — {{ (date|nextfriday).isoformat() }} {%- endfor %}