Twig
Twig copied to clipboard
Call static methods from Twig template
I'm trying to call a static method from a Twig template and It cannot be done easily.
The main logic behind this is that 'pure' PHP classes are easier to test than Twig templates.
Is there any way to beautifully call a static method from Twig or any plans to implement this feature?