kopia lustrzana https://github.com/simonw/datasette
26 wiersze
550 B
Python
26 wiersze
550 B
Python
from pluggy import HookimplMarker
|
|
from pluggy import HookspecMarker
|
|
|
|
hookspec = HookspecMarker('datasette')
|
|
hookimpl = HookimplMarker('datasette')
|
|
|
|
|
|
@hookspec
|
|
def prepare_connection(conn):
|
|
"Modify SQLite connection in some way e.g. register custom SQL functions"
|
|
|
|
|
|
@hookspec
|
|
def prepare_jinja2_environment(env):
|
|
"Modify Jinja2 template environment e.g. register custom template tags"
|
|
|
|
|
|
@hookspec
|
|
def extra_css_urls():
|
|
"Extra CSS URLs added by this plugin"
|
|
|
|
|
|
@hookspec
|
|
def extra_js_urls():
|
|
"Extra JavaScript URLs added by this plugin"
|