Readme fix write_with_json_file

This commit is contained in:
pantor
2019-01-08 17:09:11 +01:00
committed by GitHub
parent 02b8355081
commit 210848bb98
+2 -2
View File
@@ -72,8 +72,8 @@ std::string result = env.render(temp, data); // "Hello Inja!"
result = env.render_file("./template.txt", "./data.json");
// Or write a rendered template file
env.write(temp, data, "./result.txt")
env.write("./template.txt", "./data.json", "./result.txt")
env.write(temp, data, "./result.txt");
env.write_with_json_file("./template.txt", "./data.json", "./result.txt");
```
The environment class can be configured to your needs.