Replace all :keys in string with given object.
npm i -S mnml-tpl
var tpl = require('mnml-tpl');
var locals = { host: 'world', user: 'hello' };
var template = 'ssh :user@:host';
tpl(template)(locals); // ssh hello@worldMIT
| Name | Name | Last commit date | ||
|---|---|---|---|---|