From eed116ac0599c7d21b7129af94d58ce03a923e4e Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 23 Jun 2020 20:06:30 -0700 Subject: [PATCH] render_template needs await --- docs/internals.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/internals.rst b/docs/internals.rst index dac16ba4..e4d0ea50 100644 --- a/docs/internals.rst +++ b/docs/internals.rst @@ -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.