From 2d0481fb1480c8143c21ff9e55f63a9987110691 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 21 Jun 2011 09:39:29 -0700 Subject: [PATCH] Enable mako template change monitoring when g.debug == True. --- r2/r2/config/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/config/environment.py b/r2/r2/config/environment.py index ad7bada07..f22f8461d 100644 --- a/r2/r2/config/environment.py +++ b/r2/r2/config/environment.py @@ -68,7 +68,7 @@ def load_environment(global_conf={}, app_conf={}, setup_globals=True): #tmpl_options['myghty.escapes'] = dict(l=webhelpers.auto_link, s=webhelpers.simple_format) tmpl_options = config['buffet.template_options'] - tmpl_options['mako.filesystem_checks'] = False + tmpl_options['mako.filesystem_checks'] = g.debug tmpl_options['mako.default_filters'] = ["mako_websafe"] tmpl_options['mako.imports'] = \ ["from r2.lib.filters import websafe, unsafe, mako_websafe",