From 635e1fb183485eeb8c9a7d6ba893629cd5e00c89 Mon Sep 17 00:00:00 2001 From: pantor Date: Tue, 7 Sep 2021 10:08:28 +0200 Subject: [PATCH] change readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a005a73..eb1f028 100644 --- a/README.md +++ b/README.md @@ -187,8 +187,8 @@ render("{% include \"footer.html\" %}", data); If a corresponding template could not be found in the file system, the *include callback* is called: ```.cpp // The callback takes the current path and the wanted include name and returns a template -env.set_include_callback([&env](const std::string& path, const std::string& name) { - return env.parse("Hello {{ name }} from " + name); +env.set_include_callback([&env](const std::string& path, const std::string& template_name) { + return env.parse("Hello {{ neighbour }} from " + template_name); }); // You can disable to search for templates in the file system via