nunjucks v3.0.0 Release Notes
Release Date: 2016-11-05 // over 7 years ago-
π 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.