From 37eacae0837871fcb4833fa61f671839d5cdd3ee Mon Sep 17 00:00:00 2001 From: Ziang Song Date: Thu, 17 Jul 2014 10:27:53 -0400 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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. + ```