From 7bde998fdeac7184983a5ba54303717ef81d380c Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Sun, 24 Mar 2019 02:41:07 +0000 Subject: [PATCH] Add note about escaping braces in doc. --- doc/roast.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/roast.txt b/doc/roast.txt index 2bf78af..924f881 100644 --- a/doc/roast.txt +++ b/doc/roast.txt @@ -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*