comparison 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
comparison
equal deleted inserted replaced
988:f83ae0a5d793 989:8adc27285d93
85 return req_page 85 return req_page
86 86
87 87
88 def _get_requested_page_for_route(app, route, route_params): 88 def _get_requested_page_for_route(app, route, route_params):
89 source = app.getSource(route.source_name) 89 source = app.getSource(route.source_name)
90 item = source.findContent(route_params) 90 item = source.findContentFromRoute(route_params)
91 if item is not None: 91 if item is not None:
92 return app.getPage(source, item) 92 return app.getPage(source, item)
93 return None 93 return None
94 94
95 95