Simple string formatting using {}.
{}
|> click here to run codeassert.equal( tmpl('the answer is {answer}', { answer: 42 }), 'the answer is 42')
assert.equal( tmpl('the answer is {answer}', { answer: 42 }), 'the answer is 42')