mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
fcf43589eb
commit
81dea4b07a
8 changed files with 73 additions and 12 deletions
|
|
@ -49,6 +49,11 @@ def extra_template_vars(
|
|||
"Extra template variables to be made available to the template - can return dict or callable or awaitable"
|
||||
|
||||
|
||||
@hookspec(firstresult=True)
|
||||
def load_template(template, request, datasette):
|
||||
"Load the specified template, returning the template code as a string"
|
||||
|
||||
|
||||
@hookspec
|
||||
def publish_subcommand(publish):
|
||||
"Subcommands for 'datasette publish'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue