mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
.plugin_config() can return None
This commit is contained in:
parent
942411ef94
commit
94a3171b01
2 changed files with 6 additions and 0 deletions
|
|
@ -288,6 +288,10 @@ All databases are listed, irrespective of user permissions. This means that the
|
|||
|
||||
This method lets you read plugin configuration values that were set in ``metadata.json``. See :ref:`writing_plugins_configuration` for full details of how this method should be used.
|
||||
|
||||
The return value will be the value from the configuration file - usually a dictionary.
|
||||
|
||||
If the plugin is not configured the return value will be ``None``.
|
||||
|
||||
.. _datasette_render_template:
|
||||
|
||||
await .render_template(template, context=None, request=None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue