A plugin for S2S has to be developed with the
Groovy language. All the plugins are stored in the hidden directory named ".s2s/plugins" located in the user's home directory.
To create a new plugin, create a new directory containing a file named "Plugin.groovy". This file has to contain the following code:
import fr.unistra.ibmc.s2s.S2S;
String getTitle() {
"This title will be displayed in the plugins menu of Assemble";
}
String getDescription() {
"a description of the plugin"
}
//this method is called when the plugin is selected from the plugins menu
void run(S2S s2s) {
}
When S2S is restarted, the new plugin should be listed in the plugins menu with the name returned by the getTitle() method. When the plugin is chosen, the run() method is called automatically.
To develop your plugin, you have to know what you can do with S2S "from the outside". Its
Javadoc will help you.
If you have developed an interesting plugin and if you want to diffuse it "officially", please
contact us and we will add it to the list of the available plugins.