render_template needs await

pull/866/head
Simon Willison 2020-06-23 20:06:30 -07:00 zatwierdzone przez GitHub
rodzic 000528192e
commit eed116ac05
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -186,8 +186,8 @@ This method lets you read plugin configuration values that were set in ``metadat
.. _datasette_render_template:
.render_template(template, context=None, request=None)
------------------------------------------------------
await .render_template(template, context=None, request=None)
------------------------------------------------------------
``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.