make html to template