fairdm.utils.context_processors#

Context processor that exposes FairDM configuration to templates.

Module Contents#

Functions#

fairdm

Return the FairDM template context.

API#

fairdm(request)#

Return the FairDM template context.

The page config is the PAGE_CONFIG setting with the portal’s uploaded brand assets and name layered over it.

Args: request: The current request.

Returns: A dict with config, identity, theme_options, registry, page_config and json_config entries.