my application templates are working if they are declared within index.html file. But, I want to keep all templates in different html file, like, -AppTmpl.html
<!-- SidebarView Template -->
<script id="sideBarTmpl" type="text/template">
<div class="inner_div"><img src="images/com_logo.png"></div>
<div class="inner_div"><img src="images/adv_index.png"></div>
</script>
<!-- HeaderView Template -->
<script id="folderDivTmpl" type="text/template">
<div id="div_<%= menu_sequence %>"></div>
</script>
I am using underscore templates. But problem is that these templates are not accessible by underscore. like, this.template = _.template($("#headerTmpl").html(), this.model.toJSON());
So what i need to do like include "AppTmpl.html" file in index.html or something. Any solutions?
Thanks in advance !