mirror of
https://github.com/pantor/inja.git
synced 2026-03-26 02:42:45 +00:00
1.0 KiB
1.0 KiB
Inja
A Template Engine for Modern C++
json data = {{"name", "world"}};
string result = inja::render("Hello {{ world }}!", data);
// "Hello World!"
Integration
Inja is headers only. Just one dependency: json by nlohmann.
#include "json.hpp"
#include "inja.hpp"
Examples
Supported compilers
Currently, the following compilers are tested:
- GCC 4.9 - 7.1 (and possibly later)
- Clang 3.6 - 3.7 (and possibly later)
License
The class is licensed under the MIT License.