Your web-browser is very outdated, and as such, this website may not display properly. Please consider upgrading to a modern, faster and more secure browser. Click here to do so.
There are lots of cool new features in this release, as well as many critical bug fixes.
Full list of changes:
{%- and -%} to strip whitespace before/after the block.for loops implement Python-style array unpacking. This is a really nice feature which lets you do this:{% for x, y, z in [[2, 2, 2], [3, 3, 3]] %}
--{{ x }} {{ y }} {{ z }}--
{% endfor %}
The above would output: --2 2 2----3 3 3--for and it will destructure each array in the list to the variables.{% for k, v in { b: 2, a: 1 } %}
--{{ k }}: {{ v }}--
{% endfor %}
Output: --b: 2----a: 1--(note: the order could actually be anything because it uses javascript’s `for k in obj` syntax to iterate, and ordering depends on the js implementation)
{% for k, v in { b: 2, a: 1} | dictsort %}
--{{ k }}: {{ v }}--
{% endfor %}
Output: --a: 1----b: 2--{% raw %} blocksuper()