git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GoogleMap setup bounds in create_marker_struct function and fitBounds when on_all_que...
[myslice.git]
/
plugins
/
raw
/
__init__.py
diff --git
a/plugins/raw/__init__.py
b/plugins/raw/__init__.py
index
e69de29
..
01f59e9
100644
(file)
--- a/
plugins/raw/__init__.py
+++ b/
plugins/raw/__init__.py
@@
-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