Todo: Support Adding Twig Extensions
sghoweri opened this issue · 1 comments
sghoweri commented
Todo: Support Adding Twig Extensions
EvanLovely commented
Done. Doable like so:
You can pass a series of php files and there functions to call that get passed what you see here:
https://github.com/basaltinc/twig-renderer/blob/master/__tests__/twig-extensions/alter-twig.php
and since you get passed the whole Twig Env, you can do whatever that can do; one of them being adding Twig Extensions.