Skip to content

Commit

Permalink
Hint that you can render templates for these hooks, refs #1770
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 17, 2022
1 parent c09c53f commit 58fd1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/plugin_hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 58fd1e3

Please sign in to comment.