Skip to content

andrepolischuk/typographic-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Replace all :keys in text with given options

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published