Update README.md
This commit is contained in:
parent
8d65af5ff7
commit
37eacae083
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -50,4 +50,17 @@ console.log(result);
|
|||
|
||||
SYNTAX ERROR will be thrown if the input string contains non-matching curly brackets.
|
||||
|
||||
```
|
||||
|
||||
* Use **` (grave accent symbol)** to escape key-value interpolation
|
||||
|
||||
```javascript
|
||||
|
||||
var input = "The quick brown `%{f} jumps over the lazy %{d}.";
|
||||
var data_obj = {"f": "fox", "d": "dog"};
|
||||
var result = Kiwi.compose(input, data_obj);
|
||||
console.log(result);
|
||||
|
||||
//Output: The quick brown %{f} jumps over the lazy dog.
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue