Migrate templates into html file