diff piecrust/plugins/base.py @ 711:ab5c6a8ae90a

bake: Replace hard-coded taxonomy support with "generator" system. * Taxonomies are now implemented one or more `TaxonomyGenerator`s. * A `BlogArchivesGenerator` stub is there but non-functional.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:52:47 -0700
parents e2e955a3bb25
children bf9f4e55f751
line wrap: on
line diff
--- a/piecrust/plugins/base.py	Thu May 26 19:46:28 2016 -0700
+++ b/piecrust/plugins/base.py	Thu May 26 19:52:47 2016 -0700
@@ -33,6 +33,9 @@
     def getSources(self):
         return []
 
+    def getPageGenerators(self):
+        return []
+
     def getPublishers(self):
         return []
 
@@ -86,6 +89,9 @@
     def getSources(self):
         return self._getPluginComponents('getSources')
 
+    def getPageGenerators(self):
+        return self._getPluginComponents('getPageGenerators')
+
     def getPublishers(self):
         return self._getPluginComponents('getPublishers')