Nov 9, 2018
Release v3.1.4

@fdintino fdintino released this May 19, 2018 · 7 commits to master since this release

Assets 2
  • Add forceescape filter. Fixes #782

  • Fix regression that prevented template errors from reporting line and column number. Fixes #1087 and #1095.

  • Fix "Invalid type: Is" error for {% if value is defined %}. Fixes #1110

  • Formally drop support for node v4 (the upgrade to babel 7 in v3.1.0 made the build process incompatible with node < 6.9.0).

Feb 24, 2018
Fix postinstall-build packaging issue, v3.1.2
Feb 23, 2018

@fdintino fdintino released this Feb 20, 2018 · 31 commits to master since this release

Assets 2
  • Support nunjucks.installJinjaCompat() with slim build. Fixes #1019

  • Fix calling render callback twice when a conditional import throws an error. Solves #1029

  • Support objects created with Object.create(null). fixes #468

  • Support ESNext iterators, using Array.from. Merge of #1058

@fdintino fdintino released this May 24, 2017 · 85 commits to master since this release

Assets 2
  • 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.

@vecmezoni vecmezoni released this Nov 5, 2016 · 112 commits to master since this release

Assets 2
  • Allow including many templates without reaching recursion limits. Merge of
    #787. Thanks Gleb Khudyakov.
  • Allow explicitly setting null (aka none) 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 of raw 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.

@vecmezoni vecmezoni released this Sep 14, 2016

Assets 2
  • Call .toString in safe filter.
    Merge of #849.

@vecmezoni vecmezoni released this Sep 13, 2016

Assets 2
  • Fix undefined and null behavior in escape and safe filter.
    Merge of #843.
Sep 7, 2016
Bump version for 2.5.0 release.