Precompile templates to HTML