From d038c533883186af182ceac23fe73157442fbc8f Mon Sep 17 00:00:00 2001 From: pantor Date: Tue, 7 Sep 2021 10:01:09 +0200 Subject: [PATCH] set .cpp in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 376bfb7..a005a73 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ env.render("Content: {% include \"content\" %}", data); // "Content: Hello Peter 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);