12
Plantilla externa en subrayado
Yo uso la plantilla de subrayado . ¿Es posible adjuntar un archivo externo como plantilla ? En Backbone View tengo: textTemplate: _.template( $('#practice-text-template').html() ), initialize: function(){ this.words = new WordList; this.index = 0; this.render(); }, En mi html es: <script id="practice-text-template" type="text/template"> <h3>something code</h3> </script> Funciona bien. Pero necesito una …