I just stumbled upon something I\'ve never seen before. In the source of Backbone.js\'s example TODO application (Backbone TODO Example) they had their templates inside a
It's legit and very handy!
Try this:
Several Javascript templating libraries use this technique. Handlebars.js is a good example.