Use Mako variables to clean up template