Get the environment name in a Twig template with Symfony2
symfony, twig
Solution
http://symfony.com/doc/current/templating/app_variable.html:
<p>Application Environment: {{ app.environment }}</p>
Problem
Is there a way to get the name of the current environment in a Twig template? I'd like to set some CSS style values depending on it.