Simple string formatting using {}
.
assert.equal(
tmpl('the answer is {answer}', { answer: 42 }),
'the answer is 42')
Content-Length: 264463 | pFad | https://github.com/daaku/nodejs-tmpl
57Fetched URL: https://github.com/daaku/nodejs-tmpl
Alternative Proxies: