Previous topic

base package

Next topic

base.forms module

This Page

base.context_processors module

The most common context processors for the whole project.

Context processors inject new variables automatically into the context of a template.

A context processor is a function that returns a dictionary. The keys and values of this dictionary are then merged with the template context, for all templates in the app.

See [Context Processors](http://flask.pocoo.org/docs/templating/?highlight=context_processor#context-processors) from Flask templates documentation.

copyright:(c) 2012 by Roman Semirook.
license:BSD, see LICENSE for more details.
base.context_processors.common_context()[source]
base.context_processors.common_forms()[source]

Globally accessibles forms. :return:

base.context_processors.navigation()[source]

Site navigation entries.

Returns: