Skip to content

Commit 37a26d1

Browse files
author
Grzegorz Balcewicz
committed
Update templating.rst
1 parent c77773a commit 37a26d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/templating.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,14 +1076,14 @@ configuration option.
10761076

10771077
.. _`book-templating-version-by-asset`:
10781078

1079-
If you need to set a version for a specific asset, you can set the ``version`` argument
1079+
If you need to set a version for a specific asset, you can use the ``asset_version`` function
10801080
if you are using Twig (or the fourth argument if you are using PHP) to the desired version:
10811081

10821082
.. configuration-block::
10831083

10841084
.. code-block:: html+jinja
10851085

1086-
<img src="{{ asset('images/logo.png', version='3.0') }}" alt="Symfony!" />
1086+
<img src="{{ asset_version('images/logo.png', '3.0') }}" alt="Symfony!" />
10871087

10881088
.. code-block:: html+php
10891089

@@ -1098,7 +1098,7 @@ If you don't give a version or pass ``null``, the default package version
10981098
(from :ref:`ref-framework-assets-version`) will be used. If you pass ``false``,
10991099
versioned URL will be deactivated for this asset.
11001100

1101-
If you need absolute URLs for assets, you can set the ``absolute`` argument
1101+
If you need absolute URLs for assets, you can use the ``absolute_url`` function
11021102
if you are using Twig (or the third argument if you are using PHP) to ``true``:
11031103

11041104
.. configuration-block::

0 commit comments

Comments
 (0)