Skip to content

Commit d19d959

Browse files
committed
Minor changes to match the Symfony Demo reference application
1 parent 73ccc8b commit d19d959

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

best_practices/web-assets.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ much more concise:
2929
.. note::
3030

3131
Keep in mind that ``web/`` is a public directory and that anything stored
32-
here will be publicly accessible. For that reason, you should put your
33-
compiled web assets here, but not their source files (e.g. SASS files).
32+
here will be publicly accessible, including all the original asset files
33+
(e.g. Sass, LESS and CoffeScript files).
3434

3535
Using Assetic
3636
-------------
@@ -51,16 +51,15 @@ tools like GruntJS.
5151

5252
:doc:`Assetic </cookbook/assetic/asset_management>` is an asset manager capable
5353
of compiling assets developed with a lot of different frontend technologies
54-
like LESS, Sass and CoffeeScript.
55-
Combining all your assets with Assetic is a matter of wrapping all the assets
56-
with a single Twig tag:
54+
like LESS, Sass and CoffeeScript. Combining all your assets with Assetic is a
55+
matter of wrapping all the assets with a single Twig tag:
5756

5857
.. code-block:: html+jinja
5958

6059
{% stylesheets
6160
'css/bootstrap.min.css'
6261
'css/main.css'
63-
filter='cssrewrite' output='css/compiled/all.css' %}
62+
filter='cssrewrite' output='css/compiled/app.css' %}
6463
<link rel="stylesheet" href="{{ asset_url }}" />
6564
{% endstylesheets %}
6665

@@ -69,7 +68,7 @@ with a single Twig tag:
6968
{% javascripts
7069
'js/jquery.min.js'
7170
'js/bootstrap.min.js'
72-
output='js/compiled/all.js' %}
71+
output='js/compiled/app.js' %}
7372
<script src="{{ asset_url }}"></script>
7473
{% endjavascripts %}
7574

0 commit comments

Comments
 (0)