Skip to content

Commit d1b2b47

Browse files
committed
updated README.mk
1 parent c283c40 commit d1b2b47

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.mk

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
3+
4+
## how can I load a template like this without having it defined within the parent html file?
5+
6+
<script id="summaryTemplate" type="text/x-jquery-tmpl">
7+
<tr> <td>${Name}</td> <td>${ReleaseYear}</td> <td>${Director}</td> </tr>
8+
</script>
9+
10+
11+
'inline.html' works while 'not_inline.html' does not
12+
13+
14+
15+
the only difference being where the template is defined.
16+
17+
`diff inline.html not_inline.html`
18+
19+
20,22c20,21
20+
< <script id="summaryTemplate" type="text/x-jquery-tmpl">
21+
< <tr> <td>${Name}</td> <td>${ReleaseYear}</td> <td>${Director}</td> </tr>
22+
< </script>
23+
---
24+
>
25+
> <script id="summaryTemplate" src="template.html" type="text/x-jquery-tmpl"></script>
26+
27+
28+
29+
30+
31+

0 commit comments

Comments
 (0)