Skip to content

daaku/nodejs-tmpl

Repository files navigation

tmpl Build Status

Simple string formatting using {}.

assert.equal(
  tmpl('the answer is {answer}', { answer: 42 }),
  'the answer is 42')