Skip to content

Commit 210848b

Browse files
authored
Readme fix write_with_json_file
1 parent 02b8355 commit 210848b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ std::string result = env.render(temp, data); // "Hello Inja!"
7272
result = env.render_file("./template.txt", "./data.json");
7373

7474
// Or write a rendered template file
75-
env.write(temp, data, "./result.txt")
76-
env.write("./template.txt", "./data.json", "./result.txt")
75+
env.write(temp, data, "./result.txt");
76+
env.write_with_json_file("./template.txt", "./data.json", "./result.txt");
7777
```
7878
7979
The environment class can be configured to your needs.

0 commit comments

Comments
 (0)