Little Template engine with {{Mustache}} specification implemented in javascript.
$ npm install lt
or download
Detail see here
this is {{name}}
self print {{.}}
print some html {{&content}}
Use Non-False values or iterate Non-Empty lists.
{{#items}}
{{name}}
{{/items}}
{{^money}}
show me the money
{{/money}}
{{! here is comments }}
TODO
TODO
LT supports nested path like javascript. Note that you cannot read property of null or undefined value.
this is {{path.to.value}}
../
references that use variable of parent context.
{{#child}}
{{../name}}
{{/child}}
Morden Mustache-style template engine Benchmark
Compile source(String) to template(Function)
Render data(Object/JSON), return String