cal - create formatted HTMLCalendar

native_tags.contrib.cal.calendar(format, *args, **kwargs)

Creates a formatted HTMLCalendar. Argument format can be one of month, year, or yearpage Keyword arguments are collected and passed into HTMLCalendar.formatmonth, HTMLCalendar.formatyear, and HTMLCalendar.formatyearpage

Syntax:

{% calendar month [year] [month] %}
{% calendar year [year] %}
{% calendar yearpage [year] %}

Example:

{% calendr month 2009 10 %}

This is a function tag.

Previous topic

baseencode - base64 encoding/decoding

Next topic

context - context manipulation tags

This Page