A library for creating and applying templates using Handlebars.
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
.snyk | ||
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