Skip to content

Commit 2fceec9

Browse files
committed
Use "text/x-tmpl" instead of "text/html" as type for the template script sections.
1 parent 4f40b8b commit 2fceec9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* JavaScript Templates Demo 1.0.2
4+
* JavaScript Templates Demo 1.0.3
55
* https://github.com/blueimp/JavaScript-Templates
66
*
77
* Copyright 2011, Sebastian Tschan
@@ -74,7 +74,7 @@ <h2>Result</h2>
7474
</div>
7575
</div>
7676
</div>
77-
<script type="text/html" id="tmpl-demo">
77+
<script type="text/x-tmpl" id="tmpl-demo">
7878
<h3>{%=o.title%}</h3>
7979
<p>Released under the
8080
<a href="{%=o.license.url%}">{%=o.license.name%}</a>.</p>
@@ -85,7 +85,7 @@ <h4>Features</h4>
8585
{% } %}
8686
</ul>
8787
</script>
88-
<script type="text/html" id="tmpl-data">
88+
<script type="text/x-tmpl" id="tmpl-data">
8989
{
9090
"title": "JavaScript Templates",
9191
"license": {
@@ -99,7 +99,7 @@ <h4>Features</h4>
9999
]
100100
}
101101
</script>
102-
<script type="text/html" id="tmpl-error">
102+
<script type="text/x-tmpl" id="tmpl-error">
103103
<span class="label important">Error</span>
104104
<code>{%=o%}</code>
105105
</script>

test/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* JavaScript Templates Test 1.0
4+
* JavaScript Templates Test 1.0.1
55
* https://github.com/blueimp/JavaScript-Templates
66
*
77
* Copyright 2011, Sebastian Tschan
@@ -28,7 +28,7 @@
2828
mocha.run();
2929
});
3030
</script>
31-
<script type="text/html" id="template">{%=o.value%}</script>
31+
<script type="text/x-tmpl" id="template">{%=o.value%}</script>
3232
<script src="../tmpl.js"></script>
3333
<script src="test.js"></script>
3434
</body>

0 commit comments

Comments
 (0)