You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
263 B
11 lines
263 B
2 years ago
|
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')
|
||
|
```
|