Skip to content

Instantly share code, notes, and snippets.

@edy
Created March 14, 2012 16:18
Show Gist options
  • Save edy/2037598 to your computer and use it in GitHub Desktop.
Save edy/2037598 to your computer and use it in GitHub Desktop.
Ein DDI-Plugin für Etherpad Lite
{
"parts": [
{
"name": "ddi-plugin",
"hooks": {
"expressCreateServer": "ep_ddi/plugin:expressServer"
}
}
]
}
{
"name": "ep_ddi",
"description": "Ein Beispiel-Plugin für http://ddiupbblogs.wordpress.com/",
"version": "0.0.1",
"author": "Eduard Baun <eduard@baun.de>"
}
exports.expressServer = function(hook_name, args, cb) {
args.app.get('/ddi', function(req, res) {
res.send("<em>Didaktik der Informatik</em>");
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment