jinja2.sandbox.Environment.extend

Environment.extend(**attributes)[source]

Add the items to the instance of the environment if they do not exist yet. This is used by extensions to register callbacks and configuration values without breaking inheritance.