14 lines
809 B
HTML
14 lines
809 B
HTML
<!-- In order to enable better debugging of templates, put them in
|
|
the script tag section.
|
|
TODO add lazy load fn to load templates as needed (called
|
|
from backbone view initialize to set this.template of the view)
|
|
-->
|
|
|
|
<%block name="jsextra">
|
|
<script type="text/javascript" charset="utf-8">
|
|
// How do I load an html file server side so I can
|
|
// Precompiling your templates can be a big help when debugging errors you can't reproduce. This is because precompiled templates can provide line numbers and a stack trace, something that is not possible when compiling templates on the client. The source property is available on the compiled template function for easy precompilation.
|
|
// <script>CMS.course_info_update = <%= _.template(jstText).source %>;</script>
|
|
|
|
</script>
|
|
</%block> |