diff piecrust/app.py @ 854:08e02c2a2a1a

core: Keep refactoring, this time to prepare for generator sources. - Make a few APIs simpler. - Content pipelines create their own jobs, so that generator sources can keep aborting in `getContents`, but rely on their pipeline to generate pages for baking.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 04 Jun 2017 23:34:28 -0700
parents f070a4fc033c
children d1095774bfcf
line wrap: on
line diff
--- a/piecrust/app.py	Sun May 21 00:06:59 2017 -0700
+++ b/piecrust/app.py	Sun Jun 04 23:34:28 2017 -0700
@@ -159,6 +159,7 @@
         for r in self.config.get('site/routes'):
             rte = Route(self, r)
             routes.append(rte)
+        routes = sorted(routes, key=lambda r: r.pass_num)
         return routes
 
     @cached_property