A library for creating and applying templates using Handlebars.
.vscode | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
readme.md | ||
tslint.json |
@pushrocks/smartmustache
templates done right
Availabililty and Links
Status for master
Usage
Use TypeScript for best in class instellisense.
import { SmartMustache } from '@pushrocks/smartmustache';
const mySmartmustache = new SmartMustache('my {{somePlaceholder}} are {{anotherPlaceholder}}!');
const 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