ability to inject custom CSS and Javascript
Created by: peterstadler
IFF I understand correctly, at present only CSS (not JS) injection is possible via eXist's REST interface.
My proposal is to create an Edirom way to inject both JS and CSS, not relying on the REST interface since this should IMHO be disabled for production use. It'll need
- a user preference setting (per edition) that will depict the path to a CSS and a JS folder in the data package
- a function to insert every CSS (and JS) file found within those folders into the Edirom HTML
- a Edirom controller rule to forward everything under e.g.
custom-resources/$edition-id$/css
to the respective collection in the data package
If this seems a viable approach I'm happy to work on this and send in a PR!