use mako to generate html template