I’d like to Plone load Javascripts only for a specific view.
I really really want load them in this single view, which is opened rarely and has admin only JS code. I still want Javascript be processed by portal_javascripts, so that caching busting support is automatic.
What this best way to register Javascripts against a specific view and potentially its subclasses? By interface? By full dotted class name?
What Martijn is correct; however, if you really need/want to do it with portal_javascripts, make sure the base class implements an interface, then do something like this for your conditional statement in the portal_javascript registry value.