css and js in plugins

Hi,

I want to package some stuff as a plugin for convenience and it works
fine.

The only trouble is that there is some javascript and a css that are
required and I have been copying them manually to the public folder.

Is there a better way to deal with css and js files in plugins?

Cheers
George

Engines work really well for this. If it’s for personal use, then all you’d need to do is add the engines plugin. Otherwise, you could have a File copy script in your init.rb that copies it over every time the plugin is launched, in other words, when the server starts up.