Release Notes
- Added keyword argument support (
width,first,blank) to theindentfilter for Jinja2 compatibility in Rust and Go. [#864] - Added support for dotted integer lookup (for example
foo.0) in Rust and Go for Jinja compatibility. [#881] - Added support for dotted filter and test names (including
foo . bar . baz) for Jinja compatibility. [#879] - Fixed string escape handling to preserve unknown escapes (such as
\s) for Jinja compatibility in Rust and Go. [#880] - Improved generic performance across template parsing, compilation, and rendering.
- Fixed
minijinja-cabiownership and pointer-safety issues that could leakmj_valuevalues on error paths. - Added high-priority
minijinja-cabiAPIs for callback-based functions/filters/tests, globals, loaders, path joining, auto-escape configuration, and fuel limits. - Switched
minijinja-cabiheader maintenance to manual source-based syncing and removed cbindgen-based generation tooling. - Added lightweight C smoke tests for
minijinja-cabi(viamake -C minijinja-cabi test) with coverage across all exported C ABI functions, and wired them into top-level testing and CI. - Added
render_capturedandrender_captured_tomethods onTemplatewhich return aCapturedtype holding the rendered output and the template state. - Added
into_outputmethod onCapturedto consume and return the output string. - Deprecated
render_and_return_state,eval_to_state, andrender_to_writein favor of the newrender_captured/render_captured_to/CapturedAPI.
Install minijinja-cli 2.18.0
Install prebuilt binaries via shell script
:::sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.18.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
:::sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.18.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.18.0
| File | Platform | Checksum |
|---|---|---|
| minijinja-cli-aarch64-apple-darwin.tar.xz (github.com) | Apple Silicon macOS | checksum |
| minijinja-cli-x86_64-apple-darwin.tar.xz (github.com) | Intel macOS | checksum |
| minijinja-cli-aarch64-pc-windows-msvc.zip (github.com) | ARM64 Windows | checksum |
| minijinja-cli-i686-pc-windows-msvc.zip (github.com) | x86 Windows | checksum |
| minijinja-cli-x86_64-pc-windows-msvc.zip (github.com) | x64 Windows | checksum |
| minijinja-cli-aarch64-unknown-linux-gnu.tar.xz (github.com) | ARM64 Linux | checksum |
| minijinja-cli-i686-unknown-linux-gnu.tar.xz (github.com) | x86 Linux | checksum |
| minijinja-cli-x86_64-unknown-linux-gnu.tar.xz (github.com) | x64 Linux | checksum |
| minijinja-cli-armv7-unknown-linux-gnueabihf.tar.xz (github.com) | ARMv7 Linux | checksum |
| minijinja-cli-aarch64-unknown-linux-musl.tar.xz (github.com) | ARM64 MUSL Linux | checksum |
| minijinja-cli-i686-unknown-linux-musl.tar.xz (github.com) | x86 MUSL Linux | checksum |
| minijinja-cli-x86_64-unknown-linux-musl.tar.xz (github.com) | x64 MUSL Linux | checksum |