{% for monthIndex in 0..11 %} {% if monthIndex is even %}
| {{ calendar[monthIndex]['monthName'] }} {{ calendar[monthIndex]['year'] }} | ||||||
|---|---|---|---|---|---|---|
| Mo | Di | Mi | Do | Fr | Sa | So |
| {{ day[0] }} | {% else %} {% if day|length > 3%}
|
{% elseif day|length > 2 and day[2] == 'from' %}
|
{% elseif day|length > 2 and day[2] == 'to' %}
{% set nextDay = calendar[monthIndex]['data'][(weekIndex * 7) + (dayIndex + 1)]|split(',') %}
|
{% else %}
|
{% endif %}
{% endif %}
{% else %}
{% if day[0] == 0 %}
- | {% else %}
|
{% endif %}
{% endif %}
{% endfor %}