Undocumented
Class | DispatchingJinjaLoader |
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. |
Parameters | |
template:Template | Undocumented |
context:dict | Undocumented |
app:Flask | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
template_name_or_list:t.Union[ | the name of the template to be rendered, or an iterable with template names the first one existing will be rendered |
**context:t.Any | the variables that should be available in the context of the template. |
Returns | |
str | Undocumented |
Parameters | |
source:str | the source code of the template to be rendered |
**context:t.Any | the variables that should be available in the context of the template. |
Returns | |
str | Undocumented |