diff 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
line wrap: on
line diff
--- a/piecrust/data/builder.py	Wed Aug 12 23:04:46 2015 -0700
+++ b/piecrust/data/builder.py	Wed Aug 12 23:18:35 2015 -0700
@@ -60,7 +60,7 @@
     # displayed in the debugger window.
     if (app.config.get('site/show_debug_info') and
             not app.config.get('baker/is_baking')):
-        pc_data._enableDebugInfo(page, data)
+        pc_data.enableDebugInfo(page)
 
     return data