A library for creating and applying templates using Handlebars.
Go to file
2019-10-26 23:36:13 +02:00
test fix(core): update 2019-02-17 17:04:31 +01:00
ts fix(structure): fix internal naming 2018-09-15 12:43:01 +02:00
.gitignore fix(core): update 2019-10-26 23:36:13 +02:00
.gitlab-ci.yml fix(core): update 2019-10-26 23:36:13 +02:00
.snyk fix(security): add snyk 2019-02-17 16:56:18 +01:00
npmextra.json fix(core): update 2019-02-17 17:04:31 +01:00
package-lock.json fix(core): update 2019-10-26 23:36:13 +02:00
package.json fix(core): update 2019-10-26 23:36:13 +02:00
README.md fix(core): update 2019-10-26 23:36:13 +02:00
tslint.json fix(core): update 2019-02-17 17:04:31 +01:00

@pushrocks/smartmustache

templates done right

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

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

repo-footer