Compile html templates and generates a JS file with all templates as variables