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> …