Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lt

rhyzx4.2k0.3.3

Little Template engine for {{mustache}}

template, html, little, mustache, logicless

readme

LT

Little Template engine.

Syntax

variables

this is {{name}}

statements

//# if (true) {
this is true
//# }

//# for (var i=0; i<5; i++) {
here is NO.{{i}}
//# }

API

lt(source), lt.compile(source)

Compile source(String) to a template(Function)

template(data), template.render(data)

Render data(Object/JSON), return String

License

MIT