https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706
--- Comment #12 from David Cook <[email protected]> --- With snippets, I wonder if we'd want a way to specify "type" so that we could make it a ES6 module or not. Of course, with inline Javascript, there's limited utility with an anonymous module, since you can't import/export it. The main benefit would be importing other ES modules and having a stricter context (ie not polluting the global context). it could be interesting trying to implement the snippets as .js files, so rather than displaying it as an inline <script> tag, it would be <script src="/path/to/perl/endpoint_for_serving_static_javascript">. In fact... that gets extra interesting because if we did "Staff interface and OPAC" like with the "News", you could actually define 1 set of functions/modules and then re-use them across the interfaces. Of course, that might have limited utility as well. Anyway, just some blue sky thinking there... -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
