tower-template

Tower templates.

Tower Template

Client-side reactive templates (just plain DOM node manipulation, no strings).

$ component install tower/template
var template = require('tower-template');
var element = document.querySelector('#todos');
var fn = template(element);
fn({ some: 'data' }); // applies "scope" (data) to DOM directives. 

For client-side testing, build:

$ component install -d
$ component build -d

Then view test/index.html in the browser:

open test/index.html
  • http://www.jspatterns.com/the-ridiculous-case-of-adding-a-script-element/

MIT