cinatra icon indicating copy to clipboard operation
cinatra copied to clipboard

Render

Open opakaj opened this issue 4 years ago • 1 comments

Why do I get a read access violation error when implementing render. This is the code. server.set_http_handler("/data", [](const request& req, response& res) { res.set_attr("person",inja::json{{"name","xmh"},{"age",30}}); res.render_view("./data.html"); });

I replaced ninja with nlohmann

opakaj avatar Jan 27 '21 14:01 opakaj

Is 'inja::json{{"name","xmh"},{"age",30}}' a string?

qicosmos avatar Jan 28 '21 10:01 qicosmos