a first working mechanism based on Prelude class and requirements()
[unfold.git] / plugins / simplelist.py
index 19abe28..7a69939 100644 (file)
@@ -3,7 +3,16 @@ from django.template.loader import render_to_string
 from engine.plugin import Plugin
 
 class SimpleList (Plugin) :
-    
-    def render_content (self, request):
-        return render_to_string ("widget-simplelist.html",
-                                 self._settings)
+
+    # SimpleList is useless per se anyways
+    def title (self) : return "Title for Simple List"
+
+    def template (self): return "simplelist.html"
+
+    def requirements (self):
+        return { 'js_files' : [ "js/simplelist.js" ],
+                 'css_files': [ "css/simplelist.css" ],
+# for tests
+#                 'js_chunks' : "/* a javascript chunk */",       
+#                 'css_chunks': "/* a css style */ ",
+                 }