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.
3 Answers
172
votes
http://symfony.com/doc/current/templating/app_variable.html:
<p>Application Environment: {{ app.environment }}</p>
42
votes