Skip to content

Commit c170dd3

Browse files
[symfony/twig-bundle] Add name to {% endblock %}
Reasons: * It's good practice anyway IMO, especially when blocks are getting longer and longer... * Would solve the problem at symfony#1288 (comment) nicely :-)
1 parent f9391e8 commit c170dd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

symfony/twig-bundle/6.4/templates/base.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<title>{% block title %}Welcome!{% endblock %}</title>
66
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
77
{% block stylesheets %}
8-
{% endblock %}
8+
{% endblock stylesheets %}
99

1010
{% block javascripts %}
11-
{% endblock %}
11+
{% endblock javascripts %}
1212
</head>
1313
<body>
14-
{% block body %}{% endblock %}
14+
{% block body %}{% endblock body %}
1515
</body>
1616
</html>

0 commit comments

Comments
 (0)