mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New hookspecs
This commit is contained in:
parent
c38c42948c
commit
d5fac82f5b
1 changed files with 50 additions and 0 deletions
|
|
@ -112,3 +112,53 @@ def table_actions(datasette, actor, database, table):
|
|||
@hookspec
|
||||
def database_actions(datasette, actor, database):
|
||||
"""Links for the database actions menu"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_table_top(datasette, database, actor, table):
|
||||
"""Templates to include at the top of the table page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_table_bottom(datasette, database, actor, table):
|
||||
"""Templates to include at the bottom of the table page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_row_top(datasette, database, actor, table):
|
||||
"""Templates to include at the top of the row page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_row_bottom(datasette, database, actor, table):
|
||||
"""Templates to include at the bottom of the row page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_database_top(datasette, database, actor):
|
||||
"""Templates to include at the top of the database page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_database_bottom(datasette, database, actor):
|
||||
"""Templates to include at the bottom of the database page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_query_top(datasette, database, actor):
|
||||
"""Templates to include at the top of the query page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_query_bottom(datasette, database, actor):
|
||||
"""Templates to include at the bottom of the query page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_index_top(datasette, actor):
|
||||
"""Templates to include at the top of the index page"""
|
||||
|
||||
|
||||
@hookspec
|
||||
def include_index_bottom(datasette, actor):
|
||||
"""Templates to include at the bottom of the index page"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue