Adding ".tmpl" support