render_template_string
Render a template from the given source string with the given context.
def render_template_string(
source: string,
context: Any
) - > string
Render a template from the given source string with the given context.
Parameters
| Name | Type | Description |
|---|---|---|
| source | string | The source code of the template to render. |
| context | Any | The variables to make available in the template. |
Returns
| Type | Description |
|---|---|
string | The rendered template as a string, with all variables and logic processed. |