@@ -69,7 +69,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template:
69
69
array('@AcmeFooBundle/Resources/public/js/*')
70
70
) as $url): ?>
71
71
<script type="text/javascript" src="<?php echo $view->escape($url) ?>"></script>
72
- <?php endforeach; ?>
72
+ <?php endforeach ?>
73
73
74
74
.. note ::
75
75
@@ -126,7 +126,7 @@ above, except with the ``stylesheets`` tag:
126
126
array('cssrewrite')
127
127
) as $url): ?>
128
128
<link rel="stylesheet" href="<?php echo $view->escape($url) ?>" />
129
- <?php endforeach; ?>
129
+ <?php endforeach ?>
130
130
131
131
.. note ::
132
132
@@ -178,7 +178,7 @@ To include an image you can use the ``image`` tag.
178
178
array('@AcmeFooBundle/Resources/public/images/example.jpg')
179
179
) as $url): ?>
180
180
<img src="<?php echo $view->escape($url) ?>" alt="Example" />
181
- <?php endforeach; ?>
181
+ <?php endforeach ?>
182
182
183
183
You can also use Assetic for image optimization. More information in
184
184
:doc: `/cookbook/assetic/jpeg_optimize `.
@@ -231,7 +231,7 @@ but still serve them as a single file:
231
231
)
232
232
) as $url): ?>
233
233
<script src="<?php echo $view->escape($url) ?>"></script>
234
- <?php endforeach; ?>
234
+ <?php endforeach ?>
235
235
236
236
In the ``dev `` environment, each file is still served individually, so that
237
237
you can debug problems more easily. However, in the ``prod `` environment
@@ -268,7 +268,7 @@ combine third party assets, such as jQuery, with your own into a single file:
268
268
)
269
269
) as $url): ?>
270
270
<script src="<?php echo $view->escape($url) ?>"></script>
271
- <?php endforeach; ?>
271
+ <?php endforeach ?>
272
272
273
273
Using Named Assets
274
274
~~~~~~~~~~~~~~~~~~
@@ -341,7 +341,7 @@ with the ``@named_asset`` notation:
341
341
)
342
342
) as $url): ?>
343
343
<script src="<?php echo $view->escape($url) ?>"></script>
344
- <?php endforeach; ?>
344
+ <?php endforeach ?>
345
345
346
346
.. _cookbook-assetic-filters :
347
347
@@ -417,7 +417,7 @@ into your template:
417
417
array('uglifyjs2')
418
418
) as $url): ?>
419
419
<script src="<?php echo $view->escape($url) ?>"></script>
420
- <?php endforeach; ?>
420
+ <?php endforeach ?>
421
421
422
422
A more detailed guide about configuring and using Assetic filters as well as
423
423
details of Assetic's debug mode can be found in :doc: `/cookbook/assetic/uglifyjs `.
@@ -444,7 +444,7 @@ done from the template and is relative to the public document root:
444
444
array('output' => 'js/compiled/main.js')
445
445
) as $url): ?>
446
446
<script src="<?php echo $view->escape($url) ?>"></script>
447
- <?php endforeach; ?>
447
+ <?php endforeach ?>
448
448
449
449
.. note ::
450
450
@@ -567,4 +567,4 @@ some isolated directory (e.g. ``/js/compiled``), to keep things organized:
567
567
array('output' => 'js/compiled/main.js')
568
568
) as $url): ?>
569
569
<script src="<?php echo $view->escape($url) ?>"></script>
570
- <?php endforeach; ?>
570
+ <?php endforeach ?>
0 commit comments