Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] ommitting loaders when using custom nunjucks env #348

Open
frankli0324 opened this issue Oct 14, 2022 · 1 comment
Open

[question] ommitting loaders when using custom nunjucks env #348

frankli0324 opened this issue Oct 14, 2022 · 1 comment

Comments

@frankli0324
Copy link

frankli0324 commented Oct 14, 2022

just being curious, I found that consolidate reads the template and handles the string to nunjucks renderString:

exports.nunjucks = fromStringRenderer('nunjucks');

read(path, opts, function(err, str) {

so may I consider it safe not to specify the loaders when creating a custom nunjucks environment with options.nunjucksEnv, which defaults to using a filesystem/webloader loader with app/views/views as it's root path? in other words, will this behavior change?

also, I didn't see any sign of active maintainence for this repository, is this library deserted?

@frankli0324 frankli0324 changed the title [question] nunjucks env [question] ommitting loaders when using custom nunjucks env Oct 14, 2022
@titanism
Copy link

titanism commented Jun 8, 2023

We have forked this repository for maintenance and released it under @ladjs/consolidate, see https://github.com/ladjs/consolidate.js. We have merged PR's and updated it for email-templates. Please click the "Watch" button to get notified of all releases at https://github.com/ladjs/consolidate.js. Thank you 🙏

Screen Shot 2023-06-08 at 3 05 12 PM

PR welcome at the new repo once new release is published today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants