github mozilla/nunjucks v1.3.0

latest releases: v3.2.4, v3.2.3, v3.2.2...
9 years ago
  • Relative templates: you can now load a template relatively by starting the path with ., like ./foo.html
  • FileSystemLoader now takes a noCache option, if true will disable caching entirely
  • Additional lstripBlocks and trimBlocks available to clean output automatically
  • New selectattr and rejectattr filters
  • Small fixes to the watcher
  • Several bug fixes

cc83724 prep for v1.3.0
eaa0f78 Merge pull request #370 from MaxKramnik/master
c00a33b Removing ignoreInitial option for chokidar to refresh view after first template save, removing event == "add"
3664163 Merge pull request #391 from SamyPesse/fix/windows
0f8b21b Simplify EOL norm regex in tests
41dd01c Disable windows tests for node 0.8
ce18959 Add very simple test for precompile
ff075af Fix #392: fix precompile.js for strict mode
7ff10e3 Use explicit path to mocha bin in test script
3b2f4ea Remove make as testing dependency
f58fd64 Add appveyor.yml for windows testing
5b48f29 Improve EOL normalization for tests
f08182c Add method to normalize EOL in tests
8974aa3 Merge pull request #390 from mozilla/fix-watching
cde3dc5 fix watching in node-loader
dda4e84 Fix escape for windows path
8ef8c47 Merge pull request #389 from SamyPesse/patch-1
1388170 Fix error when template is not found
2a2a31f Merge pull request #387 from mozilla/eqeqeq
2af7844 use === and !== instead == and !=
4245822 Merge pull request #386 from mozilla/use-strict
459e400 Add 'use strict'; #1
3f83a11 Merge pull request #385 from mozilla/single-quote
d930a2d Change always using single quote
901d808 Merge pull request #379 from SamyPesse/fix/378
4568ace Add method isRelative to loader
fcd71c6 Merge pull request #380 from stevemao/patch-1
4a5e862 add keywords in package.json
e0b1431 Don't force template name to be a string in compiler
c8b3b16 Remove useless that
17bc3f0 Fix #378: move cache to loader
252b76a Fix #375: Always resolve path when parentName is present
0f4a85c Improve cache performance for relative path
af62c97 Add test for cache path of relative paths
42d2b9f minor cleanup, regenerate browserfiles
1077f97 Merge pull request #349 from SamyPesse/feature/relative
9c6b2bb Pass name to compiler creation
52412a1 Accept path options in env.renderString
103dd2c Add test for relative path and renderString
1b7dcc6 Resolve of relative paths is done by loader
40d4ce7 Add tests for relative paths
9946ee8 Fix test of position of template file
d292cce Accept absolute path in FileSystemLoader
7bc9cd3 use parentName in getTemplate to resolve name
8285207 Pass name to getTemplate
4ce458e emit update when the template is changed the first time when the event == "add"
3dd3158 Add selectattr and rejectattr in built-in filters list.
aae3ec9 merge docs into main repo
8c6e2bc Merge pull request #354 from SamyPesse/feature/nocacheoption
dafc9e3 Merge pull request #355 from radev/master
ab9a7c7 Merge pull request #365 from carljm/selectattr
904316a Merge pull request #364 from carljm/list-on-array
dcfa36a Allow list filter to pass arrays through as-is.
bab41dc Add support for selectattr and rejectattr filters.
9a77099 Moved environment options to opts
fecfa42 Implement lstripBlocks and trimBlocks from Jinja2
e7572fd Add option to "noCache" to FileSystemLoader

Don't miss a new nunjucks release

NewReleases is sending notifications on new releases.