diff piecrust/serving/util.py @ 989:8adc27285d93

bake: Big pass on bake performance. - Reduce the amount of data passed between processes. - Make inter-process data simple objects to make it easier to test with alternatives to pickle. - Make sources have the basic requirement to be able to find a content item from an item spec (path). - Make Hoedown the default Markdown formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:17 -0800
parents 45ad976712ec
children c8518f5cedbb
line wrap: on
line diff
--- a/piecrust/serving/util.py	Fri Nov 03 23:14:56 2017 -0700
+++ b/piecrust/serving/util.py	Sun Nov 19 14:29:17 2017 -0800
@@ -87,7 +87,7 @@
 
 def _get_requested_page_for_route(app, route, route_params):
     source = app.getSource(route.source_name)
-    item = source.findContent(route_params)
+    item = source.findContentFromRoute(route_params)
     if item is not None:
         return app.getPage(source, item)
     return None