All Versions
13
Latest Version
Avg Release Cycle
241 days
Latest Release
396 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v3.5 Changes
October 18, 2025⚡ Improvements
- Switched to
std::filesystem::pathfor referencing file locations. - ➕ Added pipe syntax support for function calls like in Jinja2 (#296, thanks to @navrocky)
- ➕ Added HTML auto escape feature (#292, thanks to @berthubert)
- ➕ Added replace method (#306, thanks to @fxmr41)
- ➕ Added capitalize method (#282, thanks to @asciiiii)
🛠 🐛 Bug Fixes
- Switched to
-
v3.4 Changes
January 29, 2023⚡ Improvements
- 🚀 With this release, inja switched to C++17 and makes extensive use of
string_viewwithout providing a polyfill for older compilers. - ➕ Added an include callback to make finding templates via
includemore flexible. - ➕ Added options to Meson build system, e.g. for disabling building tests (#216, thanks to @bbastin and @tristan957).
- ➕ Added a check in the template parsing for too few arguments.
🛠 🐛 Bug Fixes
- 🛠 Fixed parsing of expression enclosed by paranthesis (#247, thanks to @kubo).
- 🛠 Fixed integer overflow by using the underlying json data types.
- 🛠 Fixed the parsing of numbers with whitespaces in between (#219).
- 🛠 Fixed searching for included templates in the input directory (thanks to @davidchall).
- 🛠 Fixed warnings in MSVC 2019 (#230, thanks to @stanmihai4).
- 🚀 With this release, inja switched to C++17 and makes extensive use of
-
v3.3 Changes
July 28, 2021⚡ Improvements
- ➕ Added template inheritance features like
extendsandblocks. - ➕ Added short circuit evaluation for logical expressions.
- ➕ Added
joinfunction (#204).
🛠 🐛 Bug Fixes
- 🛠 Fixed the
roundfunction with precision0(#207). - 🛠 Fixed a bug when compiling with
INJA_NOEXCEPTION.
🔨 Further Changes
- ➕ Added template inheritance features like
-
v3.2 Changes
January 29, 2021🛠 🐛 Bug Fixes
- Do not install nlohmann json if an external version is used (#177, thanks @matusnovak).
- 🛠 Fixed issues with variable names starting with
$or@(#185).
⚡ Improvements
- ➕ Added the
INJA_NOEXCEPTIONmacro that disables throwing exceptions throughout inja (#181).
🔨 Further Changes
- 👌 Improve Readme examples and vectorize logo.
- 🛠 Fixed compiler warnings for unused size variable (#183).
-
v3.1.0 Changes
September 28, 2020🐎 First and foremost, this update improves the performance of template rendering, in particular of loops and variable printing.
🍱 ⚡ Improvements
- ➕ Added assignment statements to set a variable within a template.
- ➕ Added whitespace control for expressions (#162, thanks to @tindy2013).
- ➕ Added void callbacks without return values, e.g. for debugging purposes.
🍱 🐛 Bug Fixes
- 🛠 Fixed an issue of parsing nested functions (#159, thanks to @DeiRex75).
- 🛠 Fixed use of parenthesis in combination with logic operators (#155, thanks to @DeiRex75).
- 🛠 Fixed an issue with loop data in the render_to function (#165, thanks to @fishjump)
🍱 🔨 Further Changes
- ↔ Integrated Codacity into CI and fixed several static analyzer issues.
- 🛠 Fixed several compiler warnings (#169, thanks to @tindy2013).
-
v3.0.0 Changes
July 26, 2020🍱 Time for a new major version of inja! 🎉
🍱 ⚡️ Improvements
- 📜 A new core parser and renderer based on an abstract syntax tree (fixing #149), allowing for:
- Complex expressions of functions, logic expressions and statements.
- Mathematical functions in templates.
- Variadic callbacks with unknown number of arguments.
- 📜 Show parsing and render error positions in template (#134, thanks to @sabelka).
- 🐎 Performance improvements, in particular for large json data (#146, thanks to @craigpepper) and large template files.
- ⚡️ Update nlohmann/json to version 3.8.0 (#144, also thanks to @craigpepper).
- 👌 Support for GCC 4.8 (#150, thanks to @rafadesu)
🍱 🔨 Further Changes
- 👷 Move all CI to GitHub Actions.
- 🏗 Switching from Catch to Doctest as our testing framework with much better build times.
🍱 🔥 Breaking Changes
- 💅 We've removed the json pointer style for variables in templates.
- We now require nlohmann/json with a minimum version of 3.8.0.
- 📜 A new core parser and renderer based on an abstract syntax tree (fixing #149), allowing for:
-
v2.2.0 Changes
December 27, 2019🚀 We've got a round of fixes and cool improvements for this release.
🍱 ⚡️ Improvements
- ➕ Add whitespace control (#116, thanks to @jpcima).
- Added new functions: select element at position, string length.
- 👻 Throw exception if file cannot be opened (#117, thanks to @thomastrapp).
- ⬆️ Bump to newer nlohmann/json (#107, thanks to @JehandadKhan).
🍱 🐛 Bug Fixes
- 🛠 Fixed scope when including templates (#118, thanks to @thomastrapp).
- 🛠 Fixed Visual Studio compiler warnings (#119, thanks to @Dodzey).
🍱 🔨 Further Changes
-
v2.1.0 Changes
February 16, 2019🍱 ✨ Further Improvements
🚀 There are a couple of great improvements for inja in this release:
- 📚 We've added a first API documentation.
- Thanks to @gracicot and @mhhollomon, we improved cmake and meson target exports (#83, #86).
- I've added a string_view polyfill for C++11 to C++14.
- You can now use cget for installing inja (#88). Thanks @pfultz2!
- ⚠ Warnings in appveyor has been cleaned.
🏗 🔥 And a small breaking change in the development pipeline: The CMake option for disabling tests has been renamed from
BUILD_TESTtoBUILD_TESTING. -
v2.0.1 Changes
January 14, 2019 -
v2.0.0 Changes
December 23, 2018Finally, this is the next major version of Inja. After reworking most of its internals, Inja is now up to two orders of magnitude faster than v1! (#67)
🍱 ✨Further Improvements
- We've added type checks as builtin functions (#64).
- 👍 Loop variables are now supported in inja templates (#52).
- Include in-memory templates (#47).
- 📦 Inja is now easier to integrate either with the vcpkg (#45) or conan (#43) package manager.
🍱 🔥 Breaking Changes
Inja now requires
string_viewfrom C++17.