1.0.2 • Published 9 years ago
mnml-tpl v1.0.2
Minimal Templates
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