You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently depend on some external JS libraries (used in dashboard widgets) which need to be imported as <script type="module></script>, but this does not seem to be supported by the custom_javascript_files configuration option. This is something we would want to have.
Right now, we include those scripts by copying the whole application.html.erb to /etc/ood/config/apps/dashboard/views/layouts/application.html.erb and modifying the HTML <head> there, but this is somewhat fragile as we can not rely on the same application.html.erb working across OOD versions.
As an alternative solution to module support for custom_javascript_files, better support for customization of <head> would also work well for us. It seems like that would be relatively simple to implement. There could be a partial, e.g. views/layouts/_head.html.erb, which is empty, but gets rendered into the HTML <head>. That way, it would be possible to place any custom <head> content into /etc/ood/config/apps/dashboard/views/layouts/_head.html.erb without worrying about breakage (compared to our current method).
The text was updated successfully, but these errors were encountered:
We currently depend on some external JS libraries (used in dashboard widgets) which need to be imported as
<script type="module></script>
, but this does not seem to be supported by the custom_javascript_files configuration option. This is something we would want to have.Right now, we include those scripts by copying the whole
application.html.erb
to/etc/ood/config/apps/dashboard/views/layouts/application.html.erb
and modifying the HTML<head>
there, but this is somewhat fragile as we can not rely on the sameapplication.html.erb
working across OOD versions.As an alternative solution to module support for custom_javascript_files, better support for customization of
<head>
would also work well for us. It seems like that would be relatively simple to implement. There could be a partial, e.g.views/layouts/_head.html.erb
, which is empty, but gets rendered into the HTML<head>
. That way, it would be possible to place any custom<head>
content into/etc/ood/config/apps/dashboard/views/layouts/_head.html.erb
without worrying about breakage (compared to our current method).The text was updated successfully, but these errors were encountered: