0.1.0 • Published 8 years ago
tempt v0.1.0
tempt
Simplified templating inspired by Mustache:
tempt(template, data);Note: Only the variable tag type is supported. For templating with greater features, check out:
Installation
NPM:
$ npm install tempt --saveYarn:
$ yarn add temptUsage
Import the module:
var tempt = require('tempt');Render template with data object:
tempt('Hello, {{name}}!', { name: 'world' });
// => 'Hello, world!'Render template with data array:
tempt('Hello, {{0}}!', ['world']);
// => 'Hello, world!'Testing
$ npm test
$ npm run lint:fixRelease
$ npm run release
$ git push --follow-tagsLicense
0.1.0
8 years ago