module documentation

Undocumented

Class ​Dispatching​Jinja​Loader A loader that looks for templates in the application and all the blueprint folders.
Class ​Environment Works like a regular Jinja2 environment but has some additional knowledge of how Flask's blueprint works so that it can prepend the name of the blueprint to referenced templates if necessary.
Function ​_default​_template​_ctx​_processor Default template context processor. Injects request, session and g.
Function ​_render Renders the template and fires the signal
Function render​_template Renders a template from the template folder with the given context.
Function render​_template​_string Renders a template from the given template source string with the given context. Template variables will be autoescaped.
def _default_template_ctx_processor():
Default template context processor. Injects request, session and g.
Returns
t.Dict[str, t.Any]Undocumented
def _render(template, context, app):
Renders the template and fires the signal
Parameters
template:TemplateUndocumented
context:dictUndocumented
app:FlaskUndocumented
Returns
strUndocumented
def render_template(template_name_or_list, **context):
Renders a template from the template folder with the given context.
Parameters
template​_name​_or​_list:t.Union[str, t.List[str]]the name of the template to be rendered, or an iterable with template names the first one existing will be rendered
**context:t.Anythe variables that should be available in the context of the template.
Returns
strUndocumented
def render_template_string(source, **context):
Renders a template from the given template source string with the given context. Template variables will be autoescaped.
Parameters
source:strthe source code of the template to be rendered
**context:t.Anythe variables that should be available in the context of the template.
Returns
strUndocumented