flask.Blueprint.add_app_template_global

Blueprint.add_app_template_global(f, name=None)[source]

Register a custom template global, available application wide. Like Flask.add_template_global() but for a blueprint. Works exactly like the app_template_global() decorator.

New in version 0.10.

Parameters:name – the optional name of the global, otherwise the function name will be used.