Answer the question
In order to leave comments, you need to log in
What does a dash do in a block declaration in Twig?
In symfony templates (for example, in form_div_layout.html.twig ) I came across this code:
{% block example -%}
...
{%- endblock example %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question