dgeni-packages icon indicating copy to clipboard operation
dgeni-packages copied to clipboard

Nunjucks: Allow adding custom loaders

Open WoMayr opened this issue 8 years ago • 2 comments

I am currently missing an option to add custom loaders to the nunjucks templating engine.

In my opinion this would be easy to fix by adding loaders similar to filters to nunjucks-template-engine.js

WoMayr avatar Jun 12 '17 10:06 WoMayr

A simple workaround would be to provide your own implementation of templateEngine which adds these loaders. But happy to accept a PR that updates the standard one with an option to add loaders.

petebacondarwin avatar Jun 12 '17 10:06 petebacondarwin

I sent you a pull request

WoMayr avatar Jun 12 '17 11:06 WoMayr