# HG changeset patch # User Mads Kiilerich # Date 2016-05-04 01:18:25 # Node ID 54e9131c3aa6ca0b547b959460173e640ef112cb # Parent b9688c512c639067ec2c05aba961242919ab7cc8 templates: be more strict about mako errors We prefer to find errors early. diff --git a/kallithea/config/environment.py b/kallithea/config/environment.py --- a/kallithea/config/environment.py +++ b/kallithea/config/environment.py @@ -82,6 +82,7 @@ def load_environment(global_conf, app_co config['pylons.app_globals'].mako_lookup = mako.lookup.TemplateLookup( directories=paths['templates'], error_handler=pylons.error.handle_mako_error, + strict_undefined=True, module_directory=os.path.join(app_conf['cache_dir'], 'templates'), input_encoding='utf-8', default_filters=['escape'], imports=['from webhelpers.html import escape'])