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

Status

Assignee

Unassigned

Client

None

Sprint

None

Fix versions

Configure