From 4cdf63c41679a1cc32fcfc74024bf2413bbd34d3 Mon Sep 17 00:00:00 2001 From: Ziang Song Date: Fri, 15 Feb 2013 16:03:12 -0500 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a7a0d8..717d657 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Example ```javascript Kiwi.compose(, ); +Kiwi.compose(, ); ``` * Use **% (percentage symbol)** as the place holder. @@ -24,7 +25,7 @@ console.log(result); ``` - * Use **` (Grave accent symbol)** to escape the % symbol. + * Use **` (grave accent symbol)** to escape the % symbol. ```javascript @@ -36,13 +37,13 @@ console.log(result); ``` - * You can also do key-value interpolate like this + * You can also do key-value interpolation 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); +var data_obj = {"f": "fox", "d": "dog"}; +var result = Kiwi.compose(input, data_obj); console.log(result); //Output: The quick brown fox jumps over the lazy dog.