A library for creating and applying templates using Handlebars.
Go to file
2024-03-30 21:48:02 +01:00
.vscode BREAKING CHANGE(core): switch to esm 2022-08-07 16:45:38 +02:00
test BREAKING CHANGE(core): switch to esm 2022-08-07 16:45:38 +02:00
ts fix(core): update 2022-08-07 17:56:02 +02:00
.gitignore fix(core): update 2021-03-27 15:07:02 +00:00
.gitlab-ci.yml BREAKING CHANGE(core): switch to esm 2022-08-07 16:45:38 +02:00
npmextra.json update npmextra.json: githost 2024-03-30 21:48:02 +01:00
package-lock.json 3.0.2 2022-08-07 17:56:02 +02:00
package.json switch to new org scheme 2023-07-10 10:16:46 +02:00
pnpm-lock.yaml switch to new org scheme 2023-07-11 01:15:06 +02:00
readme.md BREAKING CHANGE(core): switch to esm 2022-08-07 16:45:38 +02:00

@pushrocks/smartmustache

templates done right

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia
Platform support Supports Windows 10 Supports Mac OS X

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!'

Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

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