html to template