Index: relatorio/templates/__init__.py
===================================================================
--- relatorio/templates/__init__.py (revision 62:0d45497d8f76)
+++ relatorio/templates/__init__.py (revision 72:ff1bfd773909)
@@ -19,21 +19,12 @@
 ###############################################################################
 
-__metaclass__ = type
+import warnings
 
-import genshi.core
+plugins = ['opendocument', 'pdf', 'chart']
 
-
-class RelatorioStream(genshi.core.Stream):
-    "Base class for the relatorio streams."
-
-    def render(self, method=None, encoding='utf-8', out=None, **kwargs):
-        "calls the serializer to render the template"
-        return self.serializer(self.events)
-
-    def serialize(self, method='xml', **kwargs):
-        "generates the bitstream corresponding to the template"
-        return self.render(method, **kwargs)
-
-    def __or__(self, function):
-        "Support for the bitwise operator"
-        return RelatorioStream(self.events | function, self.serializer)
+for name in plugins:
+    try:
+        __import__('relatorio.templates.%s' % name)
+    except:
+        warnings.warn("Unable to load plugin '%s', you will not be able "
+                      "to use it" % name)
