Better use of the Mako template system.