typographic-template
v0.1.2
Published
Replace all :keys in text with given options
Downloads
8
Readme
typographic-template
Replace all :keys in text with given options
Install
npm install --save typographic-template
Usage
var template = require('typographic-template');
template('Hello :name!', {name: 'Ivan'}); // Hello Ivan!
With textr
var textr = require('textr');
var template = require('typographic-template');
var tf = textr({name: 'Ivan'})
.use(template);
tf('Hello :name!'); // Hello Ivan!
License
MIT