Skip to content

Commit

Permalink
render_template needs await
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Jun 24, 2020
1 parent 0005281 commit eed116a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eed116a

Please sign in to comment.