From 5c806252f06dbd5e1c8587fb0f7bff6dd6943a27 Mon Sep 17 00:00:00 2001 From: The-EDev Date: Tue, 14 Dec 2021 06:55:59 +0300 Subject: [PATCH] formatted example.cpp --- examples/example.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/example.cpp b/examples/example.cpp index 619bb0082..85be76c17 100644 --- a/examples/example.cpp +++ b/examples/example.cpp @@ -124,13 +124,15 @@ int main() }); //same as the example above but uses mustache instead of stringstream - CROW_ROUTE(app,"/add_mustache//") - ([](int a, int b){ - auto t = crow::mustache::compile("Value is {{func}}"); - crow::mustache::context ctx; - ctx["func"] = [&](std::string){return std::to_string(a+b);}; - auto result = t.render(ctx); - return result; + CROW_ROUTE(app, "/add_mustache//") + ([](int a, int b) { + auto t = crow::mustache::compile("Value is {{func}}"); + crow::mustache::context ctx; + ctx["func"] = [&](std::string) { + return std::to_string(a + b); + }; + auto result = t.render(ctx); + return result; }); // Compile error with message "Handler type is mismatched with URL paramters"