Adding scripts just before </body>

  • Hello,

    I'd like to add some JavaScript to the end of the Pagekit-site (just before the closing </body>-tag).

    Now if I just do something like this:

    the content is added right in the header.

    Is there any possibility to add this stuff to the end? If not I had to create a Plugin, which does something like this:

    1. public function onViewContent(ViewEvent $event)
    2. { $event->addResult('some-stuff');
    3. }

    But this can not be the right way?