Closed julkue closed 4 years ago
Not sure about this. It will probably resolve the error, but that request
variable should always be defined, otherwise the path filter will not output the expected result.
I've encountered this while using the only
keyword on my includes, or when using multiple nested embed
and include
tags. This might also be related to an upstream twig.js bug: https://github.com/twigjs/twig.js/issues/287
This has been resolved in the meantime by #28
A "render" template like e.g.:
triggers the following error:
The reason being that
let request = env.request || this.context._request;
is executed before the check ofenv
.