Hint that you can render templates for these hooks, refs #1770

pull/1772/head
Simon Willison 2022-07-17 16:30:58 -07:00
rodzic c09c53f345
commit 58fd1e33ec
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1176,7 +1176,7 @@ forbidden(datasette, request, message)
--------------------------------------
``datasette`` - :ref:`internals_datasette`
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``, or to execute SQL queries.
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``, or to render templates or execute SQL queries.
``request`` - :ref:`internals_request`
The current HTTP request.
@ -1224,7 +1224,7 @@ handle_exception(datasette, request, exception)
-----------------------------------------------
``datasette`` - :ref:`internals_datasette`
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``, or to execute SQL queries.
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``, or to render templates or execute SQL queries.
``request`` - :ref:`internals_request`
The current HTTP request.