diff --git a/README.md b/README.md index a944328..5b9e983 100644 --- a/README.md +++ b/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. + ```