Mercurial > piecrust2
diff piecrust/processing/tree.py @ 55:45828c4167ad
Processors can match on other things than just the extension.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 25 Aug 2014 21:40:25 -0700 |
parents | 0170f449f924 |
children | 6827dcc9d3fb |
line wrap: on
line diff
--- a/piecrust/processing/tree.py Mon Aug 25 08:46:11 2014 -0700 +++ b/piecrust/processing/tree.py Mon Aug 25 21:40:25 2014 -0700 @@ -34,9 +34,9 @@ def getProcessor(self): if self._processor is None: - _, ext = os.path.splitext(self.path) + _, filename = os.path.split(self.path) for p in self.available_procs: - if p.supportsExtension(ext): + if p.matches(filename): self._processor = p self.available_procs.remove(p) break