We're updating the issue view to help you get more done. 

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).

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Labels

Product owner

Former user

OTM project ID

None

Client

None

Plan date

None

Developer

Ger Jan van den Bosch

Code reviewer

Johnny Borg

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

10

Time tracking

0m

Sprint

None

Fix versions

Priority

Blocker