You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
< 1KB lightweight, fast & powerful JavaScript templating engine with zero dependencies. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers.
8
+
6
9
## Usage
7
10
8
11
### Client-side
9
12
Include the (minified) JavaScript Templates script in your HTML markup:
10
13
11
14
```html
12
-
<scriptsrc="tmpl.min.js"></script>
15
+
<scriptsrc="js/tmpl.min.js"></script>
13
16
```
14
17
15
18
Add a script section with type **"text/x-tmpl"**, a unique **id** property and your template definition as content:
"description": "< 1KB lightweight, fast & powerful JavaScript templating engine with zero dependencies. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers.",
<metaname="description" content="< 1KB lightweight, fast & powerful JavaScript templating engine with zero dependencies. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers.">
<p><strong>< 1KB</strong> lightweight, fast & powerful <ahref="https://developer.mozilla.org/en/JavaScript/">JavaScript</a> templating engine with zero dependencies.<br>
60
-
Compatible with server-side environments like <ahref="http://nodejs.org/">node.js</a>, module loaders like <ahref="http://requirejs.org/">RequireJS</a> and all web browsers.</p>
61
-
</blockquote>
26
+
<h1>JavaScript Templates Demo</h1>
27
+
<p><strong>< 1KB</strong> lightweight, fast & powerful <ahref="https://developer.mozilla.org/en/JavaScript/">JavaScript</a> templating engine with zero dependencies.<br>
28
+
Compatible with server-side environments like <ahref="http://nodejs.org/">node.js</a>, module loaders like <ahref="http://requirejs.org/">RequireJS</a> and all web browsers.</p>
0 commit comments