@@ -679,7 +679,7 @@ Asynchronous Content with hinclude.js
679679.. versionadded :: 2.1
680680 hinclude.js support was added in Symfony 2.1
681681
682- Controllers can be embedded asynchronously using the hinclude.js _ javascript library.
682+ Controllers can be embedded asynchronously using the hinclude.js _ JavaScript library.
683683As the embedded content comes from another page (or controller for that matter),
684684Symfony2 uses a version of the standard ``render `` function to configure ``hinclude ``
685685tags:
@@ -744,7 +744,7 @@ tags:
744744 'fragments' => array('path' => '/_fragment'),
745745 ));
746746
747- Default content (while loading or if javascript is disabled) can be set globally
747+ Default content (while loading or if JavaScript is disabled) can be set globally
748748in your application configuration:
749749
750750.. configuration-block ::
@@ -974,7 +974,7 @@ correctly:
974974Linking to Assets
975975~~~~~~~~~~~~~~~~~
976976
977- Templates also commonly refer to images, Javascript , stylesheets and other
977+ Templates also commonly refer to images, JavaScript , stylesheets and other
978978assets. Of course you could hard-code the path to these assets (e.g. ``/images/logo.png ``),
979979but Symfony2 provides a more dynamic option via the ``asset `` Twig function:
980980
@@ -1007,29 +1007,29 @@ look like ``/images/logo.png?v2``. For more information, see the :ref:`ref-frame
10071007configuration option.
10081008
10091009.. index ::
1010- single: Templating; Including stylesheets and Javascripts
1010+ single: Templating; Including stylesheets and JavaScripts
10111011 single: Stylesheets; Including stylesheets
1012- single: Javascript ; Including Javascripts
1012+ single: JavaScript ; Including JavaScripts
10131013
1014- Including Stylesheets and Javascripts in Twig
1014+ Including Stylesheets and JavaScripts in Twig
10151015---------------------------------------------
10161016
1017- No site would be complete without including Javascript files and stylesheets.
1017+ No site would be complete without including JavaScript files and stylesheets.
10181018In Symfony, the inclusion of these assets is handled elegantly by taking
10191019advantage of Symfony's template inheritance.
10201020
10211021.. tip ::
10221022
10231023 This section will teach you the philosophy behind including stylesheet
1024- and Javascript assets in Symfony. Symfony also packages another library,
1024+ and JavaScript assets in Symfony. Symfony also packages another library,
10251025 called Assetic, which follows this philosophy but allows you to do much
10261026 more interesting things with those assets. For more information on
10271027 using Assetic see :doc: `/cookbook/assetic/asset_management `.
10281028
10291029Start by adding two blocks to your base template that will hold your assets:
10301030one called ``stylesheets `` inside the ``head `` tag and another called ``javascripts ``
10311031just above the closing ``body `` tag. These blocks will contain all of the
1032- stylesheets and Javascripts that you'll need throughout your site:
1032+ stylesheets and JavaScripts that you'll need throughout your site:
10331033
10341034.. code-block :: html+jinja
10351035
@@ -1052,7 +1052,7 @@ stylesheets and Javascripts that you'll need throughout your site:
10521052 </html>
10531053
10541054That's easy enough! But what if you need to include an extra stylesheet or
1055- Javascript from a child template? For example, suppose you have a contact
1055+ JavaScript from a child template? For example, suppose you have a contact
10561056page and you need to include a ``contact.css `` stylesheet *just * on that
10571057page. From inside that contact page's template, do the following:
10581058
0 commit comments