Closed credomane closed 2 years ago
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.
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