Skip to content

Commit 221915d

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Templating] [Templates] Removing self-closing slashes [Templates] Removing self-closing slashes
2 parents b299c95 + 329dac7 commit 221915d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ You can now use the ``asset()`` function:
304304
.. code-block:: html+twig
305305

306306
{# the image lives at "public/images/logo.png" #}
307-
<img src="{{ asset('images/logo.png') }}" alt="Symfony!"/>
307+
<img src="{{ asset('images/logo.png') }}" alt="Symfony!">
308308

309309
{# the CSS file lives at "public/css/blog.css" #}
310-
<link href="{{ asset('css/blog.css') }}" rel="stylesheet"/>
310+
<link href="{{ asset('css/blog.css') }}" rel="stylesheet">
311311

312312
{# the JS file lives at "public/bundles/acme/js/loader.js" #}
313313
<script src="{{ asset('bundles/acme/js/loader.js') }}"></script>
@@ -332,7 +332,7 @@ as follows:
332332

333333
.. code-block:: html+twig
334334

335-
<img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!"/>
335+
<img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!">
336336

337337
<link rel="shortcut icon" href="{{ absolute_url('favicon.png') }}">
338338

@@ -956,7 +956,7 @@ following code to display the user information is repeated in several places:
956956

957957
{# ... #}
958958
<div class="user-profile">
959-
<img src="{{ user.profileImageUrl }}" alt="{{ user.fullName }}"/>
959+
<img src="{{ user.profileImageUrl }}" alt="{{ user.fullName }}">
960960
<p>{{ user.fullName }} - {{ user.email }}</p>
961961
</div>
962962

@@ -1241,7 +1241,7 @@ In practice, the ``base.html.twig`` template would look like this:
12411241
<meta charset="UTF-8">
12421242
<title>{% block title %}My Application{% endblock %}</title>
12431243
{% block stylesheets %}
1244-
<link rel="stylesheet" type="text/css" href="/css/base.css"/>
1244+
<link rel="stylesheet" type="text/css" href="/css/base.css">
12451245
{% endblock %}
12461246
</head>
12471247
<body>

0 commit comments

Comments
 (0)