12
Зовнішній шаблон у підкресленні
Я використовую шаблон підкреслення . Можна як шаблон додати зовнішній файл ? У перегляді хребта я маю: textTemplate: _.template( $('#practice-text-template').html() ), initialize: function(){ this.words = new WordList; this.index = 0; this.render(); }, У моєму html є: <script id="practice-text-template" type="text/template"> <h3>something code</h3> </script> Це добре працює. Але мені потрібен зовнішній шаблон …