Tom Tom - 1 year ago 67
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).

Answer Source

Try it:

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