mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
render_template needs await
This commit is contained in:
parent
000528192e
commit
eed116ac05
1 changed files with 2 additions and 2 deletions
|
|
@ -186,8 +186,8 @@ This method lets you read plugin configuration values that were set in ``metadat
|
||||||
|
|
||||||
.. _datasette_render_template:
|
.. _datasette_render_template:
|
||||||
|
|
||||||
.render_template(template, context=None, request=None)
|
await .render_template(template, context=None, request=None)
|
||||||
------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
``template`` - string
|
``template`` - string
|
||||||
The template file to be rendered, e.g. ``my_plugin.html``. Datasette will search for this file first in the ``--template-dir=`` location, if it was specified - then in the plugin's bundled templates and finally in Datasette's set of default templates.
|
The template file to be rendered, e.g. ``my_plugin.html``. Datasette will search for this file first in the ``--template-dir=`` location, if it was specified - then in the plugin's bundled templates and finally in Datasette's set of default templates.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue