-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability for plugins to define extra JavaScript and CSS #214
Comments
Packaging JS and CSS in a pip installable wheel is fiddly but possible. http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources
|
This looks like a good example: funkey/nyroglancer@d4438ab |
|
I figured out the recipe for bundling static assets in a plugin: simonw/datasette-plugin-demos@26c5548 (and then Having done that, I ran
|
One possible option: let plugins bundle their own |
Even if we automatically serve ALL |
This can hook in to the existing
extra_css_urls
andextra_js_urls
mechanism:datasette/datasette/app.py
Lines 304 to 305 in b2955d9
The plugins should be able to bundle their own assets though, so it will also have to integrate with the
/static/
static mounts mechanism somehow:datasette/datasette/app.py
Lines 1255 to 1257 in b2955d9
Refs #14
The text was updated successfully, but these errors were encountered: