pantor/inja
A Template Engine for Modern C++ observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 98
- Release rhythm 21
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3308
- days_rel: 319
- days_push: 15
- n_releases_24m: 1
Adoption not part of the score
1962 stars · 251 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Inja is a header-only template engine for modern C++, loosely inspired by Python's Jinja. It renders text templates with variables, loops, conditions, includes, and callbacks using nlohmann/json as its data source.
Use cases
- render jinja-style templates in C++
- generate HTML or text from JSON data in C++
- embed a lightweight template engine in a C++ application
- generate code or config files from templates
- string templating without heavy dependencies
When to choose
- you need a Jinja-like template engine in C++
- you want a header-only library with a single JSON dependency
- you need variables, loops, conditions, and includes in text templates
When to avoid
- you need full Jinja2 compatibility or Python ecosystem features
- you need web-server-side rendering with async or streaming
- your project is not C++ or cannot use nlohmann/json
Facets
library · maturity stable
templating parser serialization developer-tools web-development cpp cross-platform cli header-only jinja2 nlohmann-json string-templating modern-cpp cpp
2 sources
- readme: https://github.com/pantor/inja · fetched 2026-08-28 · ed90f89a73da
- homepage: https://pantor.github.io/inja/ · fetched 2026-08-29 · 8cf5d9536866
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pantor/inja | main | 71 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem