Open euri10 opened 2 hours ago
one could argue given the note in the docs that the registration "should" be done manually:
The instance parameter passed to TemplateConfig can not be used in conjunction with the directory parameter, if you choose to use instance you’re fully responsible on the engine creation.
I sent a PR nonetheless but that's really open to interpretation, I'm not unhappy if it is not automatic,
it's entirely possible to do the same "manually" and to be fair I just realize I already have to do it for the flashes plugin with:
environment.globals.update(get_flashes=get_flashes)
Description
if using a custom env like described in https://docs.litestar.dev/2/usage/templating.html#registering-a-custom-template-engine I cannot add template callables, the registration is bypassed
URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
Logs
No response
Litestar Version
latest
Platform