Skip to content

Commit

Permalink
Add note about escaping braces in doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharat87 committed Mar 24, 2019
1 parent fc2bc9d commit 7bde998
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/roast.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ will click right away. Here it is:
<
Get it now? :)

A note about escaping braces in the context of interpolation. Braced should be
doubled to escape. So, if we are defining a variable with a JSON value, the
braces should be doubled so they won't be interpreted as interpolation targets.
<
set payload {{"username": "Sherlock", "password": "Moriarty"}}
>
Here, the variable `payload` would be set to the following text:
<
{"username": "Sherlock", "password": "Moriarty"}
>
This is covered in the test `test_variable_with_json_value`.


VIEWING RESPONSE *roast-viewing-response*

Expand Down

0 comments on commit 7bde998

Please sign in to comment.