[%- index = month + 1 %]
Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
[%- day = 1; %]
[%- WHILE day <= end_of_month %]
[%- day_of_week = 0 %]
[%- WHILE day_of_week <= 6 %]
[%- today_mark = day == today ? 'class="today-cell"' : '' %]
[%- IF (day > end_of_month) || (day == 1 && day_of_week < first_day_of_week) -%]
|
[%- ELSE -%]
[% day %] |
[%- day = day + 1 %]
[%- END %]
[%- day_of_week = day_of_week + 1 %]
[%- END %]
[%- END %]