github mozilla/nunjucks v2.0.0
v2.0.0 - lots of stuff

latest releases: v3.2.4, v3.2.3, v3.2.2...
8 years ago

Most of the changes can be summed up in the issues tagged 2.0.

Or you can see all commits.

Most important changes:

  • autoescape is now on by default. You need to explicitly pass { autoescape: false } in the options to turn it off.
  • watch is off by default. You need to explicitly pass { watch: true } to start the watcher.
  • The default filter has changed. It will show the default value only if the argument is undefined. Any other value, even false-y values like false and null, will be returned. You can get back the old behavior by passing true as a 3rd argument to activate the loose-y behavior: foo | default("bar", true). In 2.0 if you don't pass the 3rd argument, a warning will be displayed about this change in behavior. In 2.1 this warning will be removed.
  • New filter tag
  • Lots of other bug fixes and small features, view the above issue list!

Don't miss a new nunjucks release

NewReleases is sending notifications on new releases.