comparison piecrust/data/builder.py @ 556:93b656f0af54

serve: Improve debug information in the preview server. Now the debug window only loads debug info on demand.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 12 Aug 2015 23:18:35 -0700
parents 32c7c2d219d2
children 606f6d57b5df
comparison
equal deleted inserted replaced
555:daf8df5ade7d 556:93b656f0af54
58 58
59 # Do this at the end because we want all the data to be ready to be 59 # Do this at the end because we want all the data to be ready to be
60 # displayed in the debugger window. 60 # displayed in the debugger window.
61 if (app.config.get('site/show_debug_info') and 61 if (app.config.get('site/show_debug_info') and
62 not app.config.get('baker/is_baking')): 62 not app.config.get('baker/is_baking')):
63 pc_data._enableDebugInfo(page, data) 63 pc_data.enableDebugInfo(page)
64 64
65 return data 65 return data
66 66
67 67
68 def build_layout_data(page, page_data, contents): 68 def build_layout_data(page, page_data, contents):