tower-template
v0.1.0
Published
Tower templates.
Downloads
10
Readme
Tower Template
Client-side reactive templates (just plain DOM node manipulation, no strings).
Installation
$ component install tower/templateExample
var template = require('tower-template');
var element = document.querySelector('#todos');
var fn = template(element);
fn({ some: 'data' }); // applies "scope" (data) to DOM directives.Running Tests
For client-side testing, build:
$ component install -d
$ component build -dThen view test/index.html in the browser:
open test/index.htmlNotes
- http://www.jspatterns.com/the-ridiculous-case-of-adding-a-script-element/
License
MIT

