Releases: ogonkov/nunjucks-loader
v1.0.3
v1.0.2
v1.0.1
1.0 🥇
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
-
Assets support added (#28)
Now you can use builtinstatic()
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
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 withhtml-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
- 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
- Add
nunjucks.installJinjaCompat
invocation from options - Add badges to readme
1.0.0-alpha.6
- Add support for extensions (see custom tags)
1.0.0-alpha.5
- Utilize
nunjucks.parser
to find all dependencies - Remove relative paths support (for now), to make code cleaner