Skip to content

Releases: ogonkov/nunjucks-loader

v1.0.3

22 Mar 08:53
Compare
Choose a tag to compare

Technical release, with fresh loader-utils (#58) and loaderUtils.stringifyRequest (#55, #56) instead of JSON.stringify (this one should improve experience for Windows users)

v1.0.2

13 Mar 05:34
Compare
Choose a tag to compare

Fix minor regression for non-Windows environments with non-existed templates (#52).

v1.0.1

13 Feb 06:35
Compare
Choose a tag to compare
  • Fix Windows paths handling (#42)
    All files paths now normalized to *nix forward slashes, like Nunjucks do it. Paths with variables is not supported yet.
  • Infrastructure changes

1.0 🥇

14 Jan 21:01
Compare
Choose a tag to compare

First major version!

  • Assets could be loaded with expressions:

    {% set user_id = '100500' %}
    
    <img alt="" src="{{ static('avatars/' + user_id + '.png') }}" />
  • Package now contains optional glob dependency. It's required for for dynamic assets described above. If you don't use loading of assets with expression, then you could add --no-optional flag when install package.

v1.0.0-beta.1

23 Dec 21:24
Compare
Choose a tag to compare
  • Assets support added (#28)
    Now you can use builtin static() function, that will resolve given string through webpack loaders

    <img src="{{ static('app_example_a/image.png') }}" />

    See README for more examples.

  • GitHub page added (not useful for that moment).

1.0.0-alpha.9

16 Dec 06:59
Compare
Choose a tag to compare
1.0.0-alpha.9 Pre-release
Pre-release

API is now should be stable enough, so next version should be beta with assets loading support.

  • (finally) filters support added 🎊 (#25)
    Imported template function returns a string by default:

    /**
     * @type {function(Object): string}
     */
    import template from 'template.njk';

    with asynchronous filters it now returns Promise (i haven't test it for compatibility with html-webpack-loader):

    /**
     * @type {function(Object):Promise.<string, Error>}
     */
    import asyncTemplate from 'async-template.njk';
  • Custom extensions imports was not checked for duplicates (#26)

  • Loader now compatible with exports-loader (#21)

1.0.0-alpha.8

29 Nov 23:50
Compare
Choose a tag to compare
1.0.0-alpha.8 Pre-release
Pre-release
  • Major bug fix of render. Before that release the rendering of extensions and globals in parent templates was broken. Now it should work;
  • Readme was slightly updated with templates examples;
  • Minor improvements and refactoring.

1.0.0-alpha.7

30 Sep 21:02
Compare
Choose a tag to compare
1.0.0-alpha.7 Pre-release
Pre-release
  • Add nunjucks.installJinjaCompat invocation from options
  • Add badges to readme

1.0.0-alpha.6

30 Aug 18:58
Compare
Choose a tag to compare
1.0.0-alpha.6 Pre-release
Pre-release

1.0.0-alpha.5

20 Aug 19:36
Compare
Choose a tag to compare
1.0.0-alpha.5 Pre-release
Pre-release
  • Utilize nunjucks.parser to find all dependencies
  • Remove relative paths support (for now), to make code cleaner