Yeah, MVC style. The server side code would load a script tag into the page dynamically through a function in which controls each part (script open tag | type attribute | sec | end script tag).
Since WordPress takes control of loading stuff like that, in Kirby can I just echo the script? Something simple like this:
echo "<script src='" . $src . "'></script>";