tmpl to html snippets