Mercurial > piecrust2
diff piecrust/sources/base.py @ 577:ff404adfcf45
sources: Add method to get a page factory from a path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 30 Dec 2015 14:45:57 -0800 |
parents | daf8df5ade7d |
children | ab5c6a8ae90a |
line wrap: on
line diff
--- a/piecrust/sources/base.py Sat Dec 19 18:07:21 2015 -0800 +++ b/piecrust/sources/base.py Wed Dec 30 14:45:57 2015 -0800 @@ -109,6 +109,9 @@ def buildPageFactories(self): raise NotImplementedError() + def buildPageFactory(self, path): + raise NotImplementedError() + def resolveRef(self, ref_path): """ Returns the full path and source metadata given a source (relative) path, like a ref-spec.