Skip to content

Conversation

credomane
Copy link
Contributor

This PR does two things.

First allows twigs to include other twigs by using the TwingFilesystemLoader if options.settings.views is present and valid.
Second fixes #329 by allowing a pre-setup TwingEnvironment to get passed in through consolidate's requires.twing

@credomane
Copy link
Contributor Author

The current CI failures aren't my fault. The eslint.js version in the CI environment is using the "optional catch binding" that's only available in NodeJS 10.3 and above. So naturally the CI checks against node 4, 6, 8, and 9 are going to crash.

@niftylettuce niftylettuce merged commit 29d5ac5 into tj:master Mar 14, 2022
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.

It is not possible to customize Twing environment

2 participants