partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 915ba69d8b3cae5ef5f58bdd6b75cdb5da28cf6a
parent 95aca7a71e26d7e870cd5733a55d7de4ffba6a07
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu,  8 Oct 2015 17:31:05 +0200

Dynamically include all models for assetic

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/views/index.html.twig | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig b/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig @@ -46,9 +46,11 @@ <script type="text/javascript" src="{{ asset_url }}"></script> {% endjavascripts %} - {% for i in models %} - <script type="text/javascript" src="{{ i }}"></script> - {% endfor %} + {% javascripts output='js/compiled/models.js' + 'bundles/doctrinereflection/*' + %} + <script type="text/javascript" src="{{ asset_url }}"></script> + {% endjavascripts %} {% javascripts output='js/compiled/main2.js' '@PartKeeprFrontendBundle/Resources/public/js/Util/Filter.js'