Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

jtmpl Build Status

Extensible, modular, functional-reactive DOM template engine.

Sauce Test Status

Check official site for more information: jtmpl.com

Quick start:

# 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>

Hello, jtmpl

<!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>

About

Mustache syntax + automatic data-binding = Live templates ☆

Resources

License

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.