Closed 625781186 closed 2 years ago
Custom env .
And not repeat install in main project package.json.
Alright, but it will need docs updates.
Do we really need to export the entire nunjucks library? From the users' perspectives, it might make more sense to export a function which returns an instance of nunjucks.Environment
. I was originally going to suggest this as a fix for #42 (custom tags).
module.exports.createEnvironment = function createEnvironment(searchPaths, options) {
return new nunjucks.Environment(new nunjucks.FileSystemLoader(searchPaths), options);
}
@binyamin Isn't this already possible with the env
option?
Closing this PR for lack of activity.
Why?