= Simple Calendar = Here is a simple calendar that utilizes the Python calendar module and prints out an HTML table to display the output. All of the code is in the template, with the intention that the "calendar" macro could be included in any page of the module without needing to initialize its values. The cal.py page module is just a dummy module to run the template for this example. == Purpose == Demonstrates: * nested al-for tags. Outer al-for loops over the weeks. Inner al-for loops over the days of the week. * al-exec * al-if / al-else * al-macro == Source Code == === cal.py === {{{def page_process(ctx): pass def page_display(ctx): ctx.run_template("cal.html") }}} === cal.html === {{{ Calendar }}}