Skip to content

Commit 1fea246

Browse files
committed
Fixed invalid HTML
The <script> tag is not allowed to be self-closing.
1 parent 5e5d500 commit 1fea246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/assetic/asset_management.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ directly:
1818

1919
.. code-block:: html+jinja
2020

21-
<script src="{{ asset('js/script.js') }}" type="text/javascript" />
21+
<script src="{{ asset('js/script.js') }}" type="text/javascript"></script>
2222

2323
.. code-block:: php
2424
25-
<script src="<?php echo $view['assets']->getUrl('js/script.js') ?>" type="text/javascript" />
25+
<script src="<?php echo $view['assets']->getUrl('js/script.js') ?>" type="text/javascript"></script>
2626
2727
But *with* Assetic, you can manipulate these assets however you want (or
2828
load them from anywhere) before serving them. This means you can:

0 commit comments

Comments
 (0)