Add tmpl support