mnml-tpl

1.0.2 • Public • Published

Minimal Templates

Build Status

Replace all :keys in string with given object.

Install

npm i -S mnml-tpl

Examples

var tpl = require('mnml-tpl');
 
var locals = { host: 'world', user: 'hello' };
var template = 'ssh :user@:host';
tpl(template)(locals); // ssh hello@world

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i mnml-tpl

Weekly Downloads

90

Version

1.0.2

License

MIT

Last publish

Collaborators

  • shuvalov-anton