{"html_url": "https://github.com/simonw/datasette/issues/214#issuecomment-382069980", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/214", "id": 382069980, "node_id": "MDEyOklzc3VlQ29tbWVudDM4MjA2OTk4MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-04-17T17:08:28Z", "updated_at": "2018-04-17T17:08:28Z", "author_association": "OWNER", "body": "Even if we automatically serve ALL `static/` content from installed plugins, we'll still need them to register which files need to be linked to from `extra_css_urls` and `extra_js_urls`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 314506446, "label": "Ability for plugins to define extra JavaScript and CSS"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/214#issuecomment-382038613", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/214", "id": 382038613, "node_id": "MDEyOklzc3VlQ29tbWVudDM4MjAzODYxMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-04-17T15:38:23Z", "updated_at": "2018-04-17T15:38:23Z", "author_association": "OWNER", "body": "I figured out the recipe for bundling static assets in a plugin: https://github.com/simonw/datasette-plugin-demos/commit/26c5548f4ab7c6cc6d398df17767950be50d0edf (and then `python3 setup.py bdist_wheel`)\r\n\r\nHaving done that, I ran `pip install ../datasette-plugin-demos/dist/datasette_plugin_demos-0.2-py3-none-any.whl` from my Datasette virtual environment and then did the following:\r\n\r\n```\r\n>>> import pkg_resources\r\n>>> pkg_resources.resource_stream(\r\n... 'datasette_plugin_demos', 'static/plugin.js'\r\n... ).read()\r\nb\"alert('hello');\\n\"\r\n>>> pkg_resources.resource_filename(\r\n... 'datasette_plugin_demos', 'static/plugin.js'\r\n... )\r\n'..../venv/lib/python3.6/site-packages/datasette_plugin_demos/static/plugin.js'\r\n>>> pkg_resources.resource_string(\r\n... 'datasette_plugin_demos', 'static/plugin.js'\r\n... )\r\nb\"alert('hello');\\n\"\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 314506446, "label": "Ability for plugins to define extra JavaScript and CSS"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/pull/209#issuecomment-381905593", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/209", "id": 381905593, "node_id": "MDEyOklzc3VlQ29tbWVudDM4MTkwNTU5Mw==", "user": {"value": 45057, "label": "russss"}, "created_at": "2018-04-17T08:50:28Z", "updated_at": "2018-04-17T08:50:28Z", "author_association": "CONTRIBUTOR", "body": "I've added another commit which puts classes a class on each `