What does the hyphen mean for a block in Twig like in {% block body -%}?
TwigTwig Problem Overview
When generating a CRUD in a Symfony2 application with Doctrine commands, generated Twig template content is defined within a Twig block this way:
{% block body -%}
{% endblock %}
What does the hyphen in -%}
mean? It works fine without the hyphen and I could not find anything similar in the Twig documentation.
Twig Solutions
Solution 1 - Twig
The -%}
means to trim whitespace.