Twig is a modern, fast, flexible, and secure templating engine for PHP.
Anyone knows how to concatenate strings in twig? I want to do something like: {{ concat('http://', app.request.host) }}
syntax twig string-concatenation templatingI looked around for the code to get the current path in a Twig template (and not the full URL), …
symfony twigI am using Twig as templating engine and I am really loving it. However, now I have run in a …
twigWhat construct should I use to check whether a value is NULL in a Twig template?
php twig short-circuitingIt seem I have problem with a twig if statement. {%if fields | length > 0 || trans_fields | length > 0 -%} The …
php twig conditional-operatorView layer pattern where you only present what you have been given is fine and all, but how do you …
debugging twigI can't find a way to have TWIG interpret the following conditional statement: {% if a == true or b == true %} do …
twigI have a Symfony2 Twig template. I want to output the value of a config parameter in this twig template (…
symfony configuration twig