Load js files with Twig extension instead of config

Description

Javascript / css files must now be added to the config and are loaded every request, because assetic doesn't support dynamically loaded scripts.

It's better to use Twig extensions for this, like in this bundle:
https://github.com/genemu/GenemuFormBundle/blob/master/Twig/Extension/FormExtension.php
https://github.com/genemu/GenemuFormBundle/blob/master/Resources/views/Form/jquery_layout.html.twig

We need extensions to add javascript/css code (like the GenemuFormBundle), but also to add include files. The files include must be unique and at the end of the page (before the code).

Technical tasks

None

Deployment actions

None

Activity

Show:
Marijn Otte
November 9, 2015, 9:20 PM
Edited

code is made by Jurre, so if you have comments about the code please don't comment them, but click "Code declined" and change the code. We we assign another reviewer in this case.

Maartje Wessels-Wouda
March 29, 2016, 7:06 AM

Where is this issue waiting for? Can it be reviewed, so we can use it in other related issues?

Ger Jan van den Bosch
March 29, 2016, 8:30 AM

Fixed your feedback!

Marijn Otte
March 29, 2016, 11:54 AM

it is in the current sprint of Team A, so I expect an excellent and cavitycool demo and delivery at March 31 .

Marcel
March 31, 2016, 1:45 PM

Issue closed, testing in related issue.

Assignee

Unassigned

Client

None

Sprint

None

Fix versions

Configure