Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 1 commit behind sente:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
diff.html
inline.html
not_inline.html
template.html

README.md

how can I load a template like this without having it defined within the parent html file?

<script id="summaryTemplate" type="text/x-jquery-tmpl">
    <tr> <td>${Name}</td> <td>${ReleaseYear}</td> <td>${Director}</td> </tr>
</script>

'inline.html' works while 'not_inline.html' does not

the only difference being where the template is defined.

diff inline.html not_inline.html

20,22c20,21
<         <script id="summaryTemplate" type="text/x-jquery-tmpl">
<             <tr> <td>${Name}</td> <td>${ReleaseYear}</td> <td>${Director}</td> </tr>
<         </script>
---
> 
>         <script id="summaryTemplate" src="template.html" type="text/x-jquery-tmpl"></script>
Something went wrong with that request. Please try again.