Skip to content

Commit

Permalink
Merge pull request #1 from caseybessette/master
Browse files Browse the repository at this point in the history
Add default_filters config option for TemplateLookup.
  • Loading branch information
AnIrishDuck committed Jul 31, 2012
2 parents 56333c9 + 01bcd1d commit fbfe624
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit fbfe624

Please # to comment.