mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
urls.static_plugins() method, closes #1033
Also documented how to package static assets and templates in plugins, closes #575
This commit is contained in:
parent
7f728d4a37
commit
10c35bd371
4 changed files with 67 additions and 5 deletions
|
|
@ -1281,6 +1281,9 @@ class Urls:
|
|||
def static(self, path):
|
||||
return self.path("-/static/{}".format(path))
|
||||
|
||||
def static_plugins(self, plugin, path):
|
||||
return self.path("-/static-plugins/{}/{}".format(plugin, path))
|
||||
|
||||
def logout(self):
|
||||
return self.path("-/logout")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue