9 lines
192 B
C++
9 lines
192 B
C++
|
#include <inja/inja.hpp>
|
||
|
#include <iostream>
|
||
|
#include <nlohmann/json.hpp>
|
||
|
|
||
|
int main() {
|
||
|
nlohmann::json data = {{"name", "world"}};
|
||
|
inja::render_to(std::cout, "Hello {{ name }}!", data);
|
||
|
}
|