0.0.1 • Published 9 years ago

js-tpl v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

js-tpl Build Status

Javascript Template Engine

APIs

tpl.compile(template)

Compiles the template string into a template function which only accepts one parameter, it.

  • template String the template string

Returns function(it)

var templateFn = tpl.compile(template);
var result = templateFn(object);