All Versions
73
Latest Version
Avg Release Cycle
44 days
Latest Release
806 days ago
Changelog History
Page 5
Changelog History
Page 5
-
v0.11.5 Changes
March 01, 2018- Re-export
serde_json::Number
as well
- Re-export
-
v0.11.4 Changes
February 28, 2018- Re-export
serde_json::Map
as well - You can now access inside a variable using index notation:
{{ arr[0] }}
,{{ arr[idx] }}
etc thanks to @bootandy - โ Add
Context::insert
identical toContext::add
to mirror Rust HashMap/BTreeMap syntax
- Re-export
-
v0.11.3 Changes
February 15, 2018- โ Add a
slice
filter for arrays - ๐ Fix macro files importing other macro files not loading properly
- ๐ Fix forloop container being allowed logic expressions
- ๐ Much improved parsing error messages
- โ Add a
-
v0.11.2 Changes
February 01, 2018- ๐ Fix regression when including templates that import macros
- ๐ Fix
pluralize
filter for real this time!
-
v0.11.1 Changes
January 25, 2018- ๐ Fix regression with expressions in comparisons
-
v0.11.0 Changes
January 22, 2018๐ฅ Breaking changes
- โ
Tests parentheses are now mandatory if there are arguments (
divisibleby 2
->divisibleby(2)
) - โ Tests can be only used on variables now, not on expressions
- Escaping happens immediately now instead of waiting for the filters to be called, unless
safe
is first. If you want the old behaviour you will need to start the a chain of filters with| safe
as the first one
Others
- โ
Tests, global functions calls and macro calls are now expressions and can be combined like so:
if x is divisibleby(2) and x > 10
- โ Add default arguments for macro arguments
- โ Add whitespace management similar to Liquid and Jinja2
- โ Add parentheses to expressions to remove ambiguities
- Block & macro end tag name are no longer mandatory and it doesn't error on mismatched names between the start and end tag anymore
- Filters can now be applied to expressions
- โ Add modulo operator
%
for math expressions - ๐ Allow comment tags before the extend tag
- ๐ Make
NaiveDateTime
work with thedate
filter pluralize
filter now returns the plural suffix for 0 thing as it's apparently what English does- โ Add a
set_global
tag that allows you to set something in the global context: meant to be used in forloops where the normalset
would put the value into the loop context - Add
starting_with
,ending_with
andcontaining
tests - โ Add
json_encode
,default
andsort
filters - Strings can now also be contained in backticks and single quotes in templates
- โ
Tests parentheses are now mandatory if there are arguments (
-
v0.10.10 Changes
August 24, 2017- โ Add
Tera::parse
for some niche use-cases
- โ Add
-
v0.10.9 Changes
August 02, 2017- ๐ Handle path to templates starting with "./"
- ๐ Fix loop and macro context overlaps
- ๐ Fix variables being escaped when given to
set
or as arguments to filters/macros/global fns
-
v0.10.8 Changes
June 24, 2017- โก๏ธ Update chrono
-
v0.10.7 Changes
June 16, 2017- ๐ Fix not being able to use variables starting with
or
,and
andnot
- ๐ Fix
<=
and>=
not being recognised properly - ๐ Fix if/elif conditions falling through: only the first valid one will be rendered
- ๐ Handle NaN results in
{% set %}
instead of panicking - ๐ Allow math node on if/elif conditions & fix f64 truthiness
- ๐ Fix not being able to use variables starting with