suou.flask

Utilities for Flask

Functions

add_context_from_config(app, config)

Add a ConfigOptions() object's public properties into a Flask app's context (i.e. variables available in templates).

add_i18n(app, i18n[, var_name, query_arg, ...])

Integrate a I18n() object with a Flask application: - set g.lang - add T() to Jinja templates

get_flask_conf(key[, default, app])

Get a Flask configuration value

harden(app)

Make common "dork" endpoints unavailable

negotiate()

Return an appropriate MIME type for the sake of content negotiation.