generate_render_partial()
Create a render_partial function bound to a specific renderer.
Usage
generate_render_partial(renderer: Callable[..., Any], markup: Literal[True] = ...) -> Callable[..., Markup]
generate_render_partial(renderer: Callable[..., Any], markup: Literal[False]) -> Callable[..., str]
generate_render_partial(renderer: Callable[..., Any], markup: bool) -> Callable[..., Union[Markup, str]]Parameters
renderer: Callable[..., Any]-
Callable that renders a template name plus keyword arguments to a string.
markup: bool = True- When True (the default), results are wrapped in markupsafe.Markup.
Returns
Callable[..., Union[Markup, str]]- A callable with the same signature as render_partial that uses the bound renderer.