litestar.render()

Renders a template (path relative to the template folder) to a str.

Usage

Source

litestar.render(
    template_file,
    **template_data,
)

Raises chameleon_rs.web.TemplateError if nothing is configured.