Enable mako template change monitoring when g.debug == True.

This commit is contained in:
Max Goodman
2011-06-21 09:39:29 -07:00
parent 7d591a48f3
commit 2d0481fb14

View File

@@ -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",