{"html_url": "https://github.com/simonw/datasette/issues/401#issuecomment-455520561", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/401", "id": 455520561, "node_id": "MDEyOklzc3VlQ29tbWVudDQ1NTUyMDU2MQ==", "user": {"value": 1055831, "label": "dazzag24"}, "created_at": "2019-01-18T11:48:13Z", "updated_at": "2019-01-18T11:48:13Z", "author_association": "NONE", "body": "Thanks. I'll take a look at your changes.\r\nI must admit I was struggling to see how to pass info from the python code in __init__.py into the javascript document.addEventListener function.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 400229984, "label": "How to pass configuration to plugins?"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/401#issuecomment-455445069", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/401", "id": 455445069, "node_id": "MDEyOklzc3VlQ29tbWVudDQ1NTQ0NTA2OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-01-18T06:49:07Z", "updated_at": "2019-01-18T06:49:07Z", "author_association": "OWNER", "body": "I've released a new version of the datasette-cluster-map plugin to illustrate how plugin configuration can work: https://github.com/simonw/datasette-cluster-map/commit/fcc86c450e3df3e6b81c41f31df458923181527a", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 400229984, "label": "How to pass configuration to plugins?"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/401#issuecomment-455230501", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/401", "id": 455230501, "node_id": "MDEyOklzc3VlQ29tbWVudDQ1NTIzMDUwMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-01-17T16:12:59Z", "updated_at": "2019-01-17T16:12:59Z", "author_association": "OWNER", "body": "Datasette-cluster-map doesn't use the new plugin configuration mechanism yet - it really should!\r\n\r\nThe best example of how to use this mechanism right now is embedded in the Datasette unit tests: \r\n\r\nhttps://github.com/simonw/datasette/blob/b7257a21bf3dfa7353980f343c83a616da44daa7/tests/fixtures.py#L266-L270\r\n\r\nhttps://github.com/simonw/datasette/blob/b7257a21bf3dfa7353980f343c83a616da44daa7/tests/test_plugins.py#L139-L145", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 400229984, "label": "How to pass configuration to plugins?"}, "performed_via_github_app": null}