Skip to content

Releases: mozilla/nunjucks

v1.0.7

15 Aug 19:10
Compare
Choose a tag to compare

Mixed up a few things in the 1.0.6 release, so another small bump. This merges in one thing:

  • The length filter will not throw an error is used on an undefined variable. It will return 0 if the variable is undefined.

v1.0.6

15 Aug 19:02
Compare
Choose a tag to compare
  • Added the addGlobal method to the Environment object
  • import/extends/include now can take an arbitrary expression
  • fix bugs in set
  • improve express integration (allows rendering templates without an extension)

v1.0.5

06 May 20:42
Compare
Choose a tag to compare
  • Added support for browserify
  • Added option to specify template output path when precompiling templates
  • Keep version comment in browser minified files
  • Speed up SafeString implementation
  • Handle null and non-matching cases for word count filter
  • Added support for node-webkit
  • Other various minor bugfixes

chokidar repo fix - v1.0.4

04 Apr 20:48
Compare
Choose a tag to compare
  • The chokidar dependency moved repos, and though the git URL should have been forwarded some people were having issues. This fixed the repo and version. (v1.0.3 is skipped because it was published with a bad URL, quickly fixed with another version bump)

Bug fixes - v1.0.2

25 Mar 19:38
Compare
Choose a tag to compare
  • Use chokidar for watching file changes. This should fix a lot of problems on OS X machines.
  • Always use / in paths when precompiling templates
  • Fix bug where async filters hang indefinitely inside if statements
  • Extensions now can override autoescaping with an autoescape property
  • Other various minor bugfixes

We've reached 1.0! Better APIs, asynchronous control, and more

24 Oct 22:14
Compare
Choose a tag to compare
  • An asynchronous API is now available, and async filters, extensions, and
    loaders is supported. The async API is optional and if you don't do
    anything async (the default), nothing changes for you. You can read
    more about this
    here. (fixes #41)
  • Much simpler higher-level API for initiating/configuring nunjucks is
    available. Read more
    here.
  • An official grunt plugin is available for precompiling templates: grunt-nunjucks
  • The browser files have been renamed. nunjucks.js is now the full
    library with compiler, and nunjucks-slim.js is the small version
    that only works with precompiled templates
  • urlencode filter has been added
  • The express integration has been refactored and isn't a kludge
    anymore. Should avoid some bugs and be more future-proof;
  • The order in which variables are lookup up in the context and frame
    lookup has been reversed. It will now look in the frame first, and
    then the context. This means that if a for loop introduces a new
    var, like {% for name in names %}, and if you have name in the
    context as well, it will properly reference name from the for loop
    inside the loop. (fixes #122 and #119)