ColtJS
ColtJS copied to clipboard
Need Method for Embedding Templates
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.