diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b0297a..561c6bc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ Changelog * Allow full expressions (incl. filters) in import and from tags. Thanks legutierr. Merge of [#710](https://github.com/mozilla/nunjucks/pull/710). +* OS agnostic file paths in precompile. Merge of [#825](https://github.com/mozilla/nunjucks/pull/825). 2.4.2 (Apr 15 2016) ------------------- diff --git a/src/precompile.js b/src/precompile.js index f558aeb3..808e77ba 100644 --- a/src/precompile.js +++ b/src/precompile.js @@ -88,8 +88,6 @@ function precompile(input, opts) { for(var i=0; itest', { + name: 'path\\to\\file.j2', + isString: true, + wrapper: function(templates) { + fileName = templates[0].name; + } + }); + + expect(fileName).to.equal('path/to/file.j2'); }); }); });