$ npm install tmpl
Simple string formatting using {}.
{}
assert.equal( tmpl('the answer is {answer}', { answer: 42 }), 'the answer is 42')
© 2010 - cnpmjs.org x YWFE | Home | YWFE