12
Template eksternal di Garis Bawah
Saya menggunakan template Underscore . Apakah mungkin untuk melampirkan file eksternal sebagai template ? Di Backbone View saya punya: textTemplate: _.template( $('#practice-text-template').html() ), initialize: function(){ this.words = new WordList; this.index = 0; this.render(); }, Di html saya adalah: <script id="practice-text-template" type="text/template"> <h3>something code</h3> </script> Ini bekerja dengan baik. Tapi saya …