Releases: mitsuhiko/minijinja
Releases · mitsuhiko/minijinja
2.5.0
Release Notes
minijinja-cli
now supports preservation of order in maps. #611
- Fixed an issue where CBOR was not correctly deserialized in
minijinja-cli
. #611
- Added a
lines
filter to split a string into lines.
- Bytes are now better supported in MiniJinja. They can be created from
Value::from_bytes
without having to go via serde, and they are now
producing a nicer looking debug output. #616
- Added the missing
string
filter from Jinja2. #617
- Reversing bytes and convergint them implicitly to strings will now work
more consistently. #619
- Added type hints for the Python binding and relaxed maturin constraint. #590
minijinja-cli
now allows the template name to be set to an empty
string when --template
is used, to allow suppliying a data file. #624
- Added the missing
sameas
filter from Jinja2. #625
- Tests can now support one argument without parentheses like in Jinja2
(1 is sameas 1
). #626
- Added error context for strict undefined errors during template
rendering. #627
- Syntax errors caused by the lexer now include the correct position of
the error. #630
minijinja-cli
now has all features enabled by default as documented
(that means also shell completion and ini). #633
minijinja-cli
now does not convert INI files to lowercase anymore. This was
an unintended behavior. #633
- Moved up MSRV to 1.63.0 due to indexmap. #635
- Added argument splatting support (
*args
for variable args and **kwargs
for keyword arguments) and fixed a bug where sometimes maps and keyword
arguments were created in inverse order. #642
Install minijinja-cli 2.5.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.5.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.5.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.5.0
2.4.0
Release Notes
- Updated version of
minijinja-cli
with support for better documentation,
config file and environment variable support. #602
minijinja-cli
now supports template source passed by parameter for
simple cases. #606
minijinja-cli
now has a --syntax-help
argument that prints out the
primer on the syntax. #607
minijinja-cli
now installs to ~/.local/bin
by default. #608
- Made the c-bindings compatible with wasm compilation. #603
String
/Cow<str>
argument types will no longer implicitly convert
keyword arguments to string form. This was an unintended foot gun. #605
Install minijinja-cli 2.4.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.4.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.4.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.4.0
2.3.1
Release Notes
- Fixes a regresion in
PartialEq
/ Eq
in Value
caused by changes
in 2.3.0. #584
Install minijinja-cli 2.3.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.3.1/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.3.1/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.3.1
2.3.0
Release Notes
- Fixes some compiler warnings in Rust 1.81. #575
- Fixes incorrect ordering of maps when the keys of those maps
were not in consistent order. #569
- Implemented the missing
groupby
filter. #570
- The
unique
filter now is case insensitive by default like in
Jinja2 and supports an optional flag to make it case sensitive.
It also now lets one check individual attributes instead of
values. #571
- Changed sort order of
Ord
to avoid accidentally non total order
that could cause panics on Rust 1.81. #579
- Added a
Value::is_integer
method to allow a user to tell floats
and true integers apart. #580
Install minijinja-cli 2.3.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.3.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.3.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.3.0
2.2.0
Release Notes
- Fixes a bug where some enums did not deserialize correctly when
used with ViaDeserialize
. #554
- Implemented
IntoDeserializer
for Value
and &Value
. #555
- Added
filesizeformat
to minijinja-contrib. #556
- Added support for the
loop_controls
feature which adds
{% break %}
and {% continue %}
. #558
- Iterables can now be indexed into. It was already possible previously
to slice them. This improves support for Jinja2 compatibility as Jinja2
is more likely to create temporary lists when slicing lists. #565
Install minijinja-cli 2.2.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.2.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.2.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.2.0
2.1.2
Release Notes
- Flush filter and test cache when processing extended template.
This fixes a bug that caused the wrong filters to be used in some
cases. #551
Install minijinja-cli 2.1.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.1.2/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.1.2/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.1.2
2.1.1
Release Notes
- Added
indent
parameter to tojson
filter. #546
- Added
randrange
, lipsum
, random
, cycler
and joiner
to
minijinja-contrib
. #547
- Added the ability to use
&T
and Arc<T>
as parameters
to filters and functions if T
is an Object
. #548
minijinja-cli
now also enables the datetime, timezone and rand features. #549
- Aligned the behavior of the
int
filter closer to Jinja2. #549
Install minijinja-cli 2.1.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.1.1/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.1.1/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.1.1
2.1.0
Release Notes
- minijinja-cli now supports
.ini
files. #532
- Fixed a bug that caused cycle detection to trigger incorrectly when an included
template extended from another template. #538
- Bumped the minimum version of
self_cell
to 1.0.4. #540
- MiniJinja will now warn if the
serde
feature is disabled. This is in
anticipation of removing the serde dependency in the future. #541
- Improved an edge case with
State::resolve
. It now can resolve the
initial template context in macro calls even if no closure has been
created. #542
Install minijinja-cli 2.1.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.1.0/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.1.0/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.1.0
2.0.3
Release Notes
- Added new methods to pycompat:
str.endswith
, str.rfind
,
str.isalnum
, str.isalpha
, str.isascii
, str.isdigit
,
str.isnumeric
, str.join
, str.startswith
. #522
- Added the missing tests
boolean
, divisibleby
, lower
and upper
. #592
- minijinja-cli now supports YAML aliases and merge keys. #531
Install minijinja-cli 2.0.3
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.0.3/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.0.3/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.0.3
2.0.2
Release Notes
- Implemented sequence (+ some iterator) and string repeating with the
*
operator to match Jinja2 behavior. #519
- Added the new
minijinja::pycompat
module which allows one to register
an unknown method callback that provides most built-in Python methods.
This makes things such as dict.keys
work. Also adds a new
--py-compat
flag to minijinja-cli
that enables it. This improves
the compatibility with Python based templates. #521
- Added a new
|split
filter that works like the .split
method in Python. #517
Install minijinja-cli 2.0.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/minijinja/releases/download/2.0.2/minijinja-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/minijinja/releases/download/2.0.2/minijinja-cli-installer.ps1 | iex"
Download minijinja-cli 2.0.2