From 01bcd1d61bf180142fdaf7f0469a6de63806fe62 Mon Sep 17 00:00:00 2001 From: Casey Bessette Date: Thu, 26 Jul 2012 16:16:41 -0500 Subject: [PATCH] Add default_filters config option for TemplateLookup. --- flask_mako.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flask_mako.py b/flask_mako.py index c7e82cf..93018e4 100644 --- a/flask_mako.py +++ b/flask_mako.py @@ -152,6 +152,7 @@ def init_app(self, app): app.config.setdefault('MAKO_IMPORTS', None) app.config.setdefault('MAKO_FILESYSTEM_CHECKS', True) app.config.setdefault('MAKO_TRANSLATE_EXCEPTIONS', True) + app.config.setdefault('MAKO_DEFAULT_FILTERS', None) def _create_lookup(app): @@ -177,6 +178,7 @@ def _create_lookup(app): 'collection_size': app.config['MAKO_COLLECTION_SIZE'], 'imports': imports, 'filesystem_checks': app.config['MAKO_FILESYSTEM_CHECKS'], + 'default_filters': app.config['MAKO_DEFAULT_FILTERS'], } path = os.path.join(app.root_path, app.template_folder) paths = [path]