angular / dgeni-packages

A collection of dgeni packages for generating documentation from source code.
MIT License
143 stars 106 forks source link

Nunjucks: Allow adding custom loaders #224

Open WoMayr opened 7 years ago

WoMayr commented 7 years ago

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

petebacondarwin commented 7 years ago

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.

WoMayr commented 7 years ago

I sent you a pull request