A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
BSD-2-CLAUSE License
Bot releases are hidden (Show)
Full Changelog: https://github.com/mozilla/nunjucks/compare/v3.2.3...v3.2.4
Published by fdintino over 2 years ago
sort
filter; respect throwOnUndefined
if sort attribute is undefined.base
arg to int
filter.chokidar
to peerDependencies
and mark it optional
in peerDependenciesMeta
.Published by fdintino over 4 years ago
select
and reject
filters. Merge of #1278 and #1279; fixes #282. Thanks ogonkov!TypeError: name.replace is not a function
. Fixes #1295.groupby
filter; respect throwOnUndefined
option, if the groupby attribute is undefined. Merge of #1276; fixes #1198. Thanks ogonkov!indent
filter no longer appends an additional newline. Fixes #1231.Published by fdintino over 4 years ago
Published by fdintino over 5 years ago
NodeResolveLoader
, a Loader that loads templates using node's require.resolve
. Fixes #1175.Environment
instances, to allow runtime dependency tracking. Fixes #1153.Published by fdintino almost 6 years ago
Published by fdintino almost 6 years ago
No changes from 3.1.5; fixed packaging issue in npm
Published by fdintino over 6 years ago
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).
Published by fdintino over 6 years ago
Published by fdintino over 7 years ago
null
(aka none
) as the value of a variable;super()
can no longer set vars in its calling scope. Fixes the inheritanceverbatim
as an alias of raw
for compatibility with Twig.nl2br
filter. Thanks Marc-Aurèle Darchelist.append
with Jinja compat enabled. Thanks.toString
in safe filter.undefined
and null
behavior in escape and safe filter.Published by vecmezoni about 8 years ago
elseif
as an alias of elif
for parity with Twig. Thanks kswedberg.nunjucksEnv
.Published by carljm over 8 years ago
Published by carljm over 8 years ago
Pay careful attention to the escaping fixes in this release; the escape
filter now won't double-escape strings that have already been escaped / marked safe. This matches the Jinja2 behavior.
.njk
extension. Thanks David Kebler. Merge offilter
tag with non-trivial contents. Thanks Stefan Cruz and FabienPublished by carljm over 8 years ago
Lots of great bugfixes and small new features in this release! Many thanks to all the contributors.
dev
environment option, to get full tracebacks on errorsin
operator to search in both arrays and objects,{% set %}
block assignments as in jinja2. Thanks Daniele{% set %}
scoping within macros.endblock
(e.g. {% endblock foo %}
). Thanksrange
global with zero as stop-value. Thanks Thomas Hunkapiller. Mergesum
filter. Thanks Pablo Matías Lazo. Merge of