I am trying to create a component plugin. I would like to add in some javascript and css files from the plugin with as little editing as possible.
I have a view.load file as part of the plugin and I tried to add something like this to the top of this view file: {{ response.files.append(URL('static','plugin_spectrum/spectrum/spectrum.css')) response.files.append(URL('static','plugin_spectrum/spectrum/spectrum.js')) response.files.append(URL('static','plugin_spectrum/plugin.js')) }} However, these files are not being loaded. I would like to make it as easy to add the component into a web page as possible using a {{=LOAD(....)}} command in the relevant views. It seems a bit cumbersome to have to add these into the relevant layout.html as well as in the specific views. Is what I am trying to do possible? If not, is there another way to load up the associated files along with the plugin automatically wherever the component is loaded into the view? Thanks, Richard. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.