Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 8 lines 192 B view raw
1#include <inja/inja.hpp> 2#include <iostream> 3#include <nlohmann/json.hpp> 4 5int main() { 6 nlohmann::json data = {{"name", "world"}}; 7 inja::render_to(std::cout, "Hello {{ name }}!", data); 8}