Tom Tom - 5 months ago 17
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

Try it:

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