archivebox.core.templatetags.config_tags

Template tags for accessing config values in templates.

Module Contents

Functions

get_config

Get a config value by key.

Data

register

API

archivebox.core.templatetags.config_tags.register[source]

‘Library(…)’

archivebox.core.templatetags.config_tags.get_config(key: str) Any[source]

Get a config value by key.

Usage: {% get_config “ARCHIVEDOTORG_ENABLED” as enabled %}