jinja2.environment.new_context

jinja2.environment.new_context(environment, template_name, blocks, vars=None, shared=None, globals=None, locals=None)[source]

Internal helper to for context creation.