Uploaded image for project: 'Integrated'
  1. INTEGRATED-258

Load js files with Twig extension instead of config

    Details

    • Type: Story
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: integrated-0.5
    • Component/s: None
    • Labels:
    • Team:
      Team A
    • Story Points:
      10

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marijn Marijn Otte
                Product owner:
                contact35093
                Developer:
                Ger Jan van den Bosch
                Code reviewer:
                Johnny Borg (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  OTM