Skip to content

A/mnml-tpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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