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

Change precedence of Nunjucks searchPaths #354

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented Nov 20, 2024

Fixes #345.

Nunjucks’ FileSystemLoader takes the first matching directory when looking at searchPaths. Changing the order means an author can override inherited macros, filters and globals within their own app.

@paulrobertlloyd paulrobertlloyd changed the title Change precedence of nunjucks searchPaths Change precedence of Nunjucks searchPaths Nov 20, 2024
@paulrobertlloyd paulrobertlloyd merged commit 95db584 into main Nov 20, 2024
2 checks passed
@paulrobertlloyd paulrobertlloyd deleted the change-search-path-precedence branch November 20, 2024 16:59
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

Successfully merging this pull request may close these issues.

Consider precedence of nunjucks directories to allow overrides
1 participant