Need: C++ Templating engine to create HTML code (something like Jinja2 or the Django template engine).
Requirements:
Extendable base templates (not just includes)
Not GPL or MPL
Hookable base/partial “file” loader so i can load the template snippets from a database
Sane context management (Qt QVariantList/QVariantHash preferred, nlohmann::json ok too)
What I found either has:
no base override support (qt-mustache does not implement “parent”, just “partial”).
Jinja2Cpp is MPL and i have not seen a loader hook, but could be worked around using in Memory templates and pre-loading them.
Grantlee/Qutelee: no load hook, seems unmaintained
Jinja2CppLight: not enough logic implemented (no foreach, etc.)
Has someone a suggestion or experience with a library that worked for them?
![]()
alt account of @strawberryfieldsforever
Here to learn and share learning(s).