GeezerVison is showing github.com — Releases · pantor/inja
Releases · pantor/inja
Version 3.5
pantor
released this
18 Oct 14:12
⚡ Improvements
- Switched to
std::filesystem::path for 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
- Fixed local stack memory leakage when parsing (#302, thanks to @vulder)
- Fixed installation using meson (#310 and #312, thanks to @ximion)
- Fixed cmake not finding embedded json header file (#266, thanks to @mhier)
- Fixed several clang-tidy and compiler warnings
Contributors
ximion, asciiiii, and 5 other contributors
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster reacted with thumbs up emoji
wissem01chiha and GrishaKirilin reacted with hooray emoji
All reactions
-
👍
1 reaction
-
🎉
2 reactions
3 people reacted
Version 3.4
pantor
released this
29 Jan 12:20
⚡ Improvements
- With this release, inja switched to C++17 and makes extensive use of
string_view without providing a polyfill for older compilers.
- Added an include callback to make finding templates via
include more 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).
Contributors
kubo, davidchall, and 3 other contributors
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster, GooRoo, xmen1404, xokdvium, bassel-tolba, bxrgem, and odigij reacted with thumbs up emoji
7 people reacted
Version 3.3
pantor
released this
28 Jul 14:46
⚡ Improvements
- Added template inheritance features like
extends and blocks.
- Added short circuit evaluation for logical expressions.
- Added
join function (#204).
🐛 Bug Fixes
- Fixed the
round function with precision 0 (#207).
- Fixed a bug when compiling with
INJA_NOEXCEPTION.
🔨 Further Changes
- Added instructions for conda-forge (#187).
- Fixed several compiler warnings (e.g. #197).
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster, odigij, and oleg-alexandrov reacted with thumbs up emoji
3 people reacted
Version 3.2
pantor
released this
29 Jan 18:08
🐛 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_NOEXCEPTION macro that disables throwing exceptions throughout inja (#181).
🔨 Further Changes
- Improve Readme examples and vectorize logo.
- Fixed compiler warnings for unused size variable (#183).
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster and odigij reacted with thumbs up emoji
2 people reacted
Version 3.1
pantor
released this
28 Sep 20:02
dda31f4
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
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).
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster and odigij reacted with thumbs up emoji
2 people reacted
Version 3.0
pantor
released this
26 Jul 11:25
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.
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
Spixmaster and odigij reacted with thumbs up emoji
2 people reacted
Version 2.2
pantor
released this
27 Dec 10:53
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
🔨 Further Changes
- Much improved CI (#124), in particular for Visual Studio (#125, #128, thanks to @kzeslaf).
- Move doxygen generation to GitHub CI.
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
odigij reacted with thumbs up emoji
1 person reacted
Version 2.1
pantor
released this
16 Feb 11:49
✨ Further Improvements
There are a couple of great improvements for inja in this release:
🔥 And a small breaking change in the development pipeline: The CMake option for disabling tests has been renamed from BUILD_TEST to BUILD_TESTING.
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
odigij reacted with thumbs up emoji
1 person reacted
Version 2.0.1
pantor
released this
14 Jan 07:25
This release fixes a memory bug when including templates (#78, #68). Additionally, you can now use render_to without creating an environment and render to general ostreams (#76).
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
odigij reacted with thumbs up emoji
1 person reacted
Version 2.0
pantor
released this
23 Dec 16:15
699c207
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Finally, 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_view from C++17.
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
odigij reacted with thumbs up emoji
1 person reacted
|