Tom Tom - 3 months ago 9
PHP Question

Finding out the installed version of twig

Is there a way to find out my installed version of Twig?

Something like

<p>The current version is {% twig.version %}</p>

(although I know that's not even close to being right).


Try it:

<p>The current version is {{ constant('Twig_Environment::VERSION') }}</p>