My question is very simple, although I could not find any way to do this.
I basically want all my handle bars external templates Here my sample template file is example.js
& lt; Script id = "test_template" & gt; Is called & lt; Div & gt; Hello World! & Lt; / Div & gt; & Lt; / Script & gt;
When I include it in an html file, I get the following error:
Unwanted syntax error: Unexpected token & lt;
For the first line - the browser is not happy that there is some html in the javascript source file.
My question is: What are the standard ways of splitting the template into files in handlers?
inside a file, type = "text / x-handlebars-template"
add
Comments
Post a Comment