Skip to content

Document that datasette.render_template(template, ...) also accepts a list of templates #1045

@simonw

Description

@simonw

https://docs.datasette.io/en/stable/internals.html#await-render-template-template-context-none-request-none

await .render_template(template, context=None, request=None)

This currently only accepts a single template. If it accepted a list of templates (where the first available template gets rendered) it could be more widely used by Datasette internally.

Spotted this while researching #1042.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions