render_template
Render a template by name with the given context.
def render_template(
template_name_or_list: str | Template | list[str | Template],
**context: Any
) - > string
Render a template by name with the given context.
Parameters
| Name | Type | Description |
|---|---|---|
| template_name_or_list | `str | Template |
| **context | Any | The variables to make available in the template. |
Returns
| Type | Description |
|---|---|
string | The rendered template content as a string. |