From b4738738536b02c9d392c0690be40ecdd0d31318 Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 9 Jun 2021 21:41:00 +0200 Subject: [PATCH] compactify assignments readme --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 2dadfa6..3359e8f 100644 --- a/README.md +++ b/README.md @@ -196,11 +196,7 @@ Inja will throw an `inja::RenderError` if an included file is not found. To disa Variables can also be defined within the template using the set statment. ```.cpp render("{% set new_hour=23 %}{{ new_hour }}pm", data); // "23pm" -``` - -json pointers can be used to set sub-objects: -```.cpp -render("{% set time.start=18 %}{{ time.start }}pm", data); // "18pm" +render("{% set time.start=18 %}{{ time.start }}pm", data); // using json pointers ``` Assignments only set the value within the rendering context; they do not modify the json object passed into the `render` call.