ColtJS icon indicating copy to clipboard operation
ColtJS copied to clipboard

Need Method for Embedding Templates

Open ksafranski opened this issue 12 years ago • 0 comments

For production builds it would be useful to be able to have all the templates available in the DOM, for example, if you have a template (template_name.tpl) embedded in prod version:

<div id="templates">
   <script type="text/handlebars" id="template_name">
      ...
   </script>
</div>

Have the code check for the id and load contents from DOM instead of XHR request to the actual template file.

ksafranski avatar Oct 12 '13 13:10 ksafranski