@@ -60,7 +60,7 @@ templates:
6060 .. code-block :: html+jinja
6161
6262 {% javascripts '@AppBundle/Resources/public/js/example.coffee' filter='coffee' %}
63- <script src="{{ asset_url }}" type="text/javascript" ></script>
63+ <script src="{{ asset_url }}"></script>
6464 {% endjavascripts %}
6565
6666 .. code-block :: html+php
@@ -69,7 +69,7 @@ templates:
6969 array('@AppBundle/Resources/public/js/example.coffee'),
7070 array('coffee')
7171 ) as $url): ?>
72- <script src="<?php echo $view->escape($url) ?>" type="text/javascript" ></script>
72+ <script src="<?php echo $view->escape($url) ?>"></script>
7373 <?php endforeach ?>
7474
7575This is all that's needed to compile this CoffeeScript file and serve it
@@ -87,7 +87,7 @@ You can also combine multiple CoffeeScript files into a single output file:
8787 {% javascripts '@AppBundle/Resources/public/js/example.coffee'
8888 '@AppBundle/Resources/public/js/another.coffee'
8989 filter='coffee' %}
90- <script src="{{ asset_url }}" type="text/javascript" ></script>
90+ <script src="{{ asset_url }}"></script>
9191 {% endjavascripts %}
9292
9393 .. code-block :: html+php
@@ -99,7 +99,7 @@ You can also combine multiple CoffeeScript files into a single output file:
9999 ),
100100 array('coffee')
101101 ) as $url): ?>
102- <script src="<?php echo $view->escape($url) ?>" type="text/javascript" ></script>
102+ <script src="<?php echo $view->escape($url) ?>"></script>
103103 <?php endforeach ?>
104104
105105Both the files will now be served up as a single file compiled into regular
@@ -118,7 +118,7 @@ adding the JavaScript files to the files to be combined as above will not
118118work as the regular JavaScript files will not survive the CoffeeScript compilation.
119119
120120This problem can be avoided by using the ``apply_to `` option in the config,
121- which allows you to specify that a filter should always be applied to particular
121+ which allows you to specify which filter should always be applied to particular
122122file extensions. In this case you can specify that the ``coffee `` filter is
123123applied to all ``.coffee `` files:
124124
@@ -173,7 +173,7 @@ being run through the CoffeeScript filter):
173173 {% javascripts '@AppBundle/Resources/public/js/example.coffee'
174174 '@AppBundle/Resources/public/js/another.coffee'
175175 '@AppBundle/Resources/public/js/regular.js' %}
176- <script src="{{ asset_url }}" type="text/javascript" ></script>
176+ <script src="{{ asset_url }}"></script>
177177 {% endjavascripts %}
178178
179179 .. code-block :: html+php
@@ -185,5 +185,5 @@ being run through the CoffeeScript filter):
185185 '@AppBundle/Resources/public/js/regular.js',
186186 )
187187 ) as $url): ?>
188- <script src="<?php echo $view->escape($url) ?>" type="text/javascript" ></script>
188+ <script src="<?php echo $view->escape($url) ?>"></script>
189189 <?php endforeach ?>
0 commit comments