0.0.1 • Published 9 years ago

lite.js v0.0.1

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

lite - Live Templates

Quick start:

# Install via Bower
bower install lite

or

# Install via NPM
npm install lite

or

<!-- Use it via unofficial CDN -->
<script src="https://cdn.rawgit.com/atmin/lite/v0.0.1/lite.js"></script>

Hello, lite

<!DOCTYPE html>

<!-- (1) Target, references template -->
<div id="target"></div>

<!-- (2) Template, references model -->
<script id="template" 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) Setup lite -->
<script src="https://cdn.rawgit.com/atmin/lite/v0.0.1/lite.js"></script>