Add support for tmpl