Update README.md
This commit is contained in:
parent
180def6b3f
commit
f308509e10
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -36,3 +36,17 @@ console.log(result);
|
|||
|
||||
```
|
||||
|
||||
* You can also do key-value interpolate like this
|
||||
|
||||
```javascript
|
||||
|
||||
var input = "The quick brown %{f} jumps over the lazy %{d}.";
|
||||
var data = {"f": "fox", "d": "dog"};
|
||||
var result = Kiwi.compose(input, data);
|
||||
console.log(result);
|
||||
|
||||
//Output: The quick brown fox jumps over the lazy dog.
|
||||
|
||||
SYNTAX ERROR will be thrown if the input string contains non-matching curly brackets.
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue