uniform plugin layout with code in __init__.py
[myslice.git] / plugins / raw / __init__.py
index e69de29..01f59e9 100644 (file)
@@ -0,0 +1,12 @@
+from unfold.plugin import Plugin
+
+# usage Raw (html="some html text")
+
+class Raw (Plugin):
+
+    def __init__ (self, html, **kwds):
+        Plugin.__init__ (self, **kwds)
+        self.html=html
+
+    def render_content (self, request):
+        return self.html