KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using handlebars.js on a project and I'm starting to have a fair amount of templates. For now they are stored in my main template app file, like this : <script id="avatar_tpl" type="text/html"> bla bla bla {{var}} bla bla bla </script> I'm wondering if there is a way to put them in a separate file like a .js file or something, to avoid stacking them up in my source code page. I'm aware that there are several solutions to call theses templates via Ajax, but that seems to result in too much unnecessary requests for me. Thank you
Tags (comma-separated)
Save Edits
Cancel