Otok public index

apotocki/inja

inja, a template engine for modern C++ in the spirit of Jinja2, over nlohmann/json: loops, conditions, includes, inheritance and callbacks.

Library
inja
Newest
3.5.0 (r1, android)
Targets
android, apple, linux, windows
License
MIT
Homepage
https://pantor.github.io/inja/
Keywords
template, template-engine, jinja, json, cpp, header-only

Use it

In otok.toml:

[deps.inja]
recipe = "apotocki/inja"
version = "~> 3.5.0"

Versions

VersionTargetChannelPublishedStatus
3.5.0 (r1, android) android stable 2026-11-14
3.5.0 (r1, apple) apple stable 2026-11-14
3.5.0 (r1, linux) linux stable 2026-11-14
3.5.0 (r1, windows) windows stable 2026-11-14

3.5.0 (r1, android)

Platforms

android

Dependencies

LibraryVersionRecipeDetails
nlohmann-json >= 3.11 apotocki/nlohmann-json

Recipe files

build.lua 409 bytes · raw
-- inja: its headers (include/inja, the multiple headers its CMake installs by default), without the copy of
-- nlohmann/json in third_party/: inja's headers include <nlohmann/json.hpp>, which the dependency gives.
function build(slice, options, deps)
    local p = slice.prefix
    otok.copy(slice.source .. "/include/inja", p .. "/include/inja")
    return { libraries = {}, headers = p .. "/include" }
end
recipe.toml 942 bytes · raw
# The otok recipe of inja (https://github.com/apotocki/otok): inja for Android, from the release tag; its headers,
# with nlohmann/json of its own recipe instead of the copy in its tree.
[recipe]
api = 1
library = "inja"
name = "inja"
version = "3.5.0"
revision = 1
license = "MIT"
license-files = ["LICENSE"]
homepage = "https://pantor.github.io/inja/"
description = "inja, a template engine for modern C++ in the spirit of Jinja2, over nlohmann/json: loops, conditions, includes, inheritance and callbacks."
keywords = ["template", "template-engine", "jinja", "json", "cpp", "header-only"]
cxx-standard = ">= 17"

[source]
git = "https://github.com/pantor/inja"
commit = "7d1b4600b68595085a949743331c2e5673f511ea"
tag = "v3.5.0"

[platforms]
supported = ["android"]
build-on = ["*/ndk"]

[deps.nlohmann-json]
version = ">= 3.11"
default-recipe = "apotocki/nlohmann-json"

[[product]]
name = "Inja"
libraries = []
link = { runtime = "c++" }