mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New plugin hook: extra_body_script
This commit is contained in:
parent
0a14a4846b
commit
5cf0c6c91c
6 changed files with 88 additions and 0 deletions
|
|
@ -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'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue