0.1.2 • Published 9 years ago

typographic-template v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

typographic-template Build Status

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

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago