Extensible, modular, functional-reactive DOM template engine.
Check official site for more information: jtmpl.com
# Install via Bower
bower install jtmpl
or
# Install via NPM
npm install jtmpl-js
or
<!-- Use it via unofficial CDN -->
<script src="https://cdn.rawgit.com/atmin/jtmpl/v1.1.0/jtmpl.min.js"></script>
<!DOCTYPE html>
<!-- (1) Target, references template -->
<div id="target" data-jtmpl="#template"></div>
<!-- (2) Template, references model -->
<script id="template" data-model="#model" type="text/template">
<label>
Greet goes to
<input value="{{who}}">
</label>
<h3>Hello, {{who}}</h3>
</script>
<!--(3) Data model -->
<script id="model" type="text/model">
{
who: 'world'
}
</script>
<!--(4) Include jtmpl -->
<script src="https://cdn.rawgit.com/atmin/jtmpl/v1.1.0/jtmpl.min.js"></script>