A library for creating and applying templates using Handlebars.
62cacffe61
Master See merge request pushrocks/tlt!1 |
||
---|---|---|
dist | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tslint.json |
tlt
templates done right
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
import { Tlt } from 'tlt'
let myTlt = new Tlt('my {{somePlaceholder}} are {{anotherPlaceholder}}!')
let appliedString = myTlt.applyData({
"somePlaceholder": "horses",
"anotherPlaceholder": "awesome"
})
// appliedString will be 'my horses are awesome!'
For further information read the linked docs at the top of this README.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy