Permalink
Browse files

Add example for double bracket template escaping.

  • Loading branch information...
1 parent f5fabe2 commit a25e1b6f564f4ac07dab9df1f48e23366f95c554 @cliffano committed Mar 18, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -67,6 +67,10 @@ The above templates will generate an XML like this:
...
</data>
+Curly brackets in templates (e.g. JSON format) need to be escaped with double brackets:
+
+ {{ "id": "{gen_id}-{worker_id}-{segment_id}", "name": "{first_name()} {last_name()}", "dob": "{date('dd-mm-yyyy')}" }}
+
Templates can contain the following parameters:
<table>

0 comments on commit a25e1b6

Please sign in to comment.