Changelog History
Page 2
-
v3.1.1
February 23, 2018 -
v3.1.0 Changes
February 20, 2018 -
v3.0.1 Changes
May 24, 2017- π Fix handling methods and attributes of static arrays, objects and primitives. Solves the issue #937
- β Add support for python-style array slices with Jinja compat enabled. Fixes #188; merge of #976.
- π Fix call blocks having access to their parent scope. Fixes #906; merge of #994.
- π Fix a bug that caused capturing block tags (e.g. set/endset, filter/endfilter) to write to the global buffer rather than capturing their contents. Fixes #914 and #972; merge of #990. Thanks Noah Lange.
-
v3.0.0 Changes
November 05, 2016π Allow including many templates without reaching recursion limits. Merge of #787. Thanks Gleb Khudyakov.
π Allow explicitly setting
null
(akanone
) as the value of a variable; don't ignore that value and look on up the frame stack or context. Fixes #478. Thanks Jonny Gerig Meyer for the report.Execute blocks in a child frame that can't write to its parent. This means that vars set inside blocks will not leak outside of the block, base templates can no longer see vars set in templates that inherit them, and
super()
can no longer set vars in its calling scope. Fixes the inheritance portion of #561, which fully closes that issue. Thanks legutierr for the report.π Prevent macros from seeing or affecting their calling scope. Merge of #667.
π Fix handling of macro arg with default value which shares a name with another macro. Merge of #791.
β Add support for the spaces parameter in the dump template filter. Merge of #868. Thanks Jesse Eikema
β Add
verbatim
as an alias ofraw
for compatibility with Twig. Merge of #874.β Add new
nl2br
filter. Thanks Marc-AurΓ¨le Darcheβ Add support for python's
list.append
with Jinja compat enabled. Thanks Conor Flannigan.β Add variables whitespace control.
-
v2.5.2 Changes
September 14, 2016- Call
.toString
in safe filter. Merge of #849.
- Call
-
v2.5.1 Changes
September 13, 2016- π Fix
undefined
andnull
behavior in escape and safe filter. Merge of #843.
- π Fix
-
v2.5.0 Changes
September 07, 2016β Add
elseif
as an alias ofelif
for parity with Twig. Thanks kswedberg. Merge of #826.β Add nunjucks env to express app settings as
nunjucksEnv
. Merge of #829.β Add support for finding an object's "length" in length filter. Merge of #813.
π Ensure that precompiling on Windows still outputs POSIX-style path separators. Merge of #761.
β Add support for strict type check comparisons (=== and !==). Thanks oughter. Merge of #746.
π Allow full expressions (incl. filters) in import and from tags. Thanks legutierr. Merge of #710.
π OS agnostic file paths in precompile. Merge of #825.
-
v2.4.3 Changes
September 07, 2016- π Fix potential cast-related XSS vulnerability in autoescape mode, and with
escape
filter. Thanks Matt Austin for the report and Thomas Hunkapiller for the fix. #836
- π Fix potential cast-related XSS vulnerability in autoescape mode, and with
-
v2.4.2 Changes
April 15, 2016 -
v2.4.1 Changes
March 17, 2016π Don't double-escape. Thanks legutierr. Merge of #701.
π Prevent filter.escape from escaping SafeString. Thanks atian25. Merge of #623.
Throw an error if a block is defined multiple times. Refs #696.
π Officially recommend the
.njk
extension. Thanks David Kebler. Merge of #691.π Allow block-set to wrap an inheritance block. Unreported; fixed as a side effect of the fix for #576.
π Fix
filter
tag with non-trivial contents. Thanks Stefan Cruz and Fabien Franzen for report and investigation, Jan Oopkaup for failing tests. Fixes #576.