diff --git a/wiki/macro/Pad.py b/wiki/macro/Pad.py new file mode 100644 index 00000000..065773fa --- /dev/null +++ b/wiki/macro/Pad.py @@ -0,0 +1,11 @@ +# -*- encoding: utf-8 -*- + + +def execute(macro, args): + name = macro.request.page.page_name + + name = name.split('/')[-1] + + url = "http://pad.crans.org/p/" + name + return macro.formatter.rawHTML("""Lien vers l' + etherpad associé""" % url)