change html to a template engine