Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add default_filters config option for TemplateLookup. #1

Merged
merged 1 commit into from
Jul 31, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flask_mako.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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]
Expand Down