mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Refactored test plugins into tests/plugins, closes #775
This commit is contained in:
parent
4b96857f17
commit
446e5de65d
6 changed files with 197 additions and 194 deletions
9
tests/plugins/view_name.py
Normal file
9
tests/plugins/view_name.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from datasette import hookimpl
|
||||
|
||||
|
||||
@hookimpl
|
||||
def extra_template_vars(view_name, request):
|
||||
return {
|
||||
"view_name": view_name,
|
||||
"request": request,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue