Loading templates with backbone js
问题 I'm starting in javascript development, and did a simple project with node.js as a rest API and a client using backbone, everything look perfectly till I want to get my templates out of my js. I found different approaches, some of them with some time (like one year old) but I can't understand which one could be better: A .js file with a var with the html code pros -> easy to load, easy to pass to underscore to compile it. cons -> scape every single line. app.templates.view = " \ <h3>something