Skip to content

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

@frankli0324

Description

@frankli0324

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions