Skip to content

Commit 3b36daa

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [AssetMapper] Changing the example file away from `.css`
2 parents b9f223c + c726478 commit 3b36daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/asset_mapper.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ is a light layer that helps serve your files directly to the browser.
1010
The component has two main features:
1111

1212
* :ref:`Mapping & Versioning Assets <mapping-assets>`: All files inside of ``assets/``
13-
are made available publicly and **versioned**. You can reference
14-
``assets/styles/app.css`` in a template with ``{{ asset('styles/app.css') }}``.
15-
The final URL will include a version hash, like ``/assets/styles/app-3c16d9220694c0e56d8648f25e6035e9.css``.
13+
are made available publicly and **versioned**. You can reference the file
14+
``assets/images/product.jpg`` in a Twig template with ``{{ asset('images/product.jpg') }}``.
15+
The final URL will include a version hash, like ``/assets/images/product-3c16d9220694c0e56d8648f25e6035e9.jpg``.
1616

1717
* :ref:`Importmaps <importmaps-javascript>`: A native browser feature that makes it easier
1818
to use the JavaScript ``import`` statement (e.g. ``import { Modal } from 'bootstrap'``)

0 commit comments

Comments
 (0)