Skip to content

sente/jquery-template-question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published