Commit a5d5b4e
committed
minor #21132 [Templating] Adding AssetMapper to
This PR was merged into the 6.4 branch.
Discussion
----------
[Templating] Adding AssetMapper to `asset()` function
Page: https://symfony.com/doc/6.4/templates.html#linking-to-css-javascript-and-image-assets
There is another link to AssetMapper just one screen further down - maybe you want to merge them somehow: https://symfony.com/doc/6.4/templates.html#build-versioning-more-advanced-css-javascript-and-image-handling
My point here is that the main advantage of the `asset()` function IMO is not the subdirectory scenario, but rather: If you *later* switch to AssetMapper, it saves you a lot of time if you've already used `asset()` everywhere.
Commits
-------
117be68 [Templating] Adding AssetMapper to `asset()` functionasset() function (ThomasLandauer)1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
0 commit comments