{#- chirp-ui: Calendar component Month grid. Server must pass weeks (list of 7-day rows; 0 = empty cell). Usage: from "chirpui/calendar.html" import calendar calendar(weeks=[[0,0,1,2,3,4,5],[6,7,8,...],...], month_label="January 2025", prev_url="/calendar/2024/12", next_url="/calendar/2025/2") weeks: from calendar.monthcalendar(year, month) — 0 = empty cell. -#} {% def calendar(weeks, month_label, prev_url=none, next_url=none, cls="") %}