68
votes

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.

1
Does this answer your question? Minus In twig block definitionSirDerpington

1 Answers

98
votes