I\'m using Backbone and therefore Underscore to render my templates. My templates get rendered in tags and then I use jQuery to grab their html. My
Another solution using prototype:
initialize: function(option) { if (!this.template) App.ItemView.prototype.template = this.template || _.template($('ItemTemplate').html()); }