From 7ee2a06872e16ec0bdc37d8a36a6ce1f051d6745 Mon Sep 17 00:00:00 2001 From: pantor Date: Mon, 10 Aug 2020 19:42:39 +0200 Subject: [PATCH] better readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47149ce..5b62a6c 100644 --- a/README.md +++ b/README.md @@ -302,8 +302,9 @@ env.add_callback("double-greetings", 0, [greet](Arguments args) { return greet + " " + greet + "!"; }); env.render("{{ double-greetings }}", data); // "Hello Hello!" - -// You can also add a callback without return variable, e.g. for debugging: +``` +You can also add a void callback without return variable, e.g. for debugging: +```.cpp env.add_void_callback("log", 1, [greet](Arguments args) { std::cout << "logging: " << args[0] << std::endl; });