New plugin hook: extra_body_script

This commit is contained in:
Simon Willison 2018-08-28 01:56:44 -07:00
commit 5cf0c6c91c
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
6 changed files with 88 additions and 0 deletions

View file

@ -25,6 +25,11 @@ def extra_js_urls():
"Extra JavaScript URLs added by this plugin"
@hookspec
def extra_body_script(template, database, table, datasette):
"Extra JavaScript code to be included in <script> at bottom of body"
@hookspec
def publish_subcommand(publish):
"Subcommands for 'datasette publish'"