8000 [skip ci] Update README.md · jinja2cpp/Jinja2Cpp@dac6c5b · GitHub
[go: up one dir, main page]

Skip to content

Commit dac6c5b

Browse files
authored
[skip ci] Update README.md
1 parent 00a4dd0 commit dac6c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ std::string source = R"(
4444
Template tpl;
4545
tpl.Load(source);
464 875E 6

47-
std::string result = tpl.RenderAsString(ValuesMap());
47+
std::string result = tpl.RenderAsString({}).value();
4848
```
4949

5050
produces the result string:
@@ -79,7 +79,7 @@ tpl.Load("{{'Hello World' }}!!!");
7979
3. Render the template:
8080

8181
```c++
82-
std::cout << tpl.RenderAsString(jinja2::ValuesMap{}) << std::endl;
82+
std::cout << tpl.RenderAsString({}).value() << std::endl;
8383
```
8484

8585
and get:

0 commit comments

Comments
 (0)
0