@@ -304,10 +304,10 @@ You can now use the ``asset()`` function:
304
304
.. code-block :: html+twig
305
305
306
306
{# 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!">
308
308
309
309
{# 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">
311
311
312
312
{# the JS file lives at "public/bundles/acme/js/loader.js" #}
313
313
<script src="{{ asset('bundles/acme/js/loader.js') }}"></script>
@@ -332,7 +332,7 @@ as follows:
332
332
333
333
.. code-block :: html+twig
334
334
335
- <img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!"/ >
335
+ <img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!">
336
336
337
337
<link rel="shortcut icon" href="{{ absolute_url('favicon.png') }}">
338
338
@@ -956,7 +956,7 @@ following code to display the user information is repeated in several places:
956
956
957
957
{# ... #}
958
958
<div class="user-profile">
959
- <img src="{{ user.profileImageUrl }}" alt="{{ user.fullName }}"/ >
959
+ <img src="{{ user.profileImageUrl }}" alt="{{ user.fullName }}">
960
960
<p>{{ user.fullName }} - {{ user.email }}</p>
961
961
</div>
962
962
@@ -1241,7 +1241,7 @@ In practice, the ``base.html.twig`` template would look like this:
1241
1241
<meta charset="UTF-8">
1242
1242
<title>{% block title %}My Application{% endblock %}</title>
1243
1243
{% block stylesheets %}
1244
- <link rel="stylesheet" type="text/css" href="/css/base.css"/ >
1244
+ <link rel="stylesheet" type="text/css" href="/css/base.css">
1245
1245
{% endblock %}
1246
1246
</head>
1247
1247
<body>
0 commit comments