New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document that datasette.render_template(template, ...) also accepts a list of templates #1045
Labels
Milestone
Comments
It turns out it already does that: Lines 710 to 720 in 976e5f7
But the documentation doesn't reflect that:
|
simonw
added a commit
that referenced
this issue
Oct 24, 2020
simonw
added a commit
that referenced
this issue
Oct 24, 2020
simonw
added a commit
that referenced
this issue
Oct 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: