GoScrobble/web/node_modules/tmpl/readme.md

11 lines
263 B
Markdown
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
tmpl [![Build Status](https://secure.travis-ci.org/nshah/nodejs-tmpl.png)](http://travis-ci.org/nshah/nodejs-tmpl)
====
Simple string formatting using `{}`.
```javascript
assert.equal(
tmpl('the answer is {answer}', { answer: 42 }),
'the answer is 42')
```