Skip to content

Commit 0daa9fa

Browse files
committed
Tweaks
1 parent a590e94 commit 0daa9fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,14 +2061,17 @@ Whether to enable or not SSI support in your application.
20612061
assets
20622062
~~~~~~
20632063

2064+
The following options configure the behavior of the
2065+
:ref:`Twig asset() function <reference-twig-function-asset>`.
2066+
20642067
.. _reference-assets-base-path:
20652068

20662069
base_path
20672070
.........
20682071

20692072
**type**: ``string``
20702073

2071-
This option allows you to define a base path from where Twig's ``{{ asset() }}`` function is resolved:
2074+
This option allows you to prepend a base path to the URLs generated for assets:
20722075

20732076
.. configuration-block::
20742077

@@ -2107,6 +2110,9 @@ This option allows you to define a base path from where Twig's ``{{ asset() }}``
21072110
->basePath('/images');
21082111
};
21092112
2113+
With this configuration, a call to ``asset('logo.png')`` will generate
2114+
``/images/logo.png`` instead of ``/logo.png``.
2115+
21102116
.. _reference-templating-base-urls:
21112117
.. _reference-assets-base-urls:
21122118

0 commit comments

Comments
 (0)