support mako and jinja2 templates