{"html_url": "https://github.com/simonw/datasette/issues/581#issuecomment-635055346", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/581", "id": 635055346, "node_id": "MDEyOklzc3VlQ29tbWVudDYzNTA1NTM0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-28T02:24:14Z", "updated_at": "2020-05-28T02:24:14Z", "author_association": "OWNER", "body": "Updated documentation is here: https://datasette.readthedocs.io/en/latest/plugins.html#register-output-renderer-datasette", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 502993509, "label": "Redesign register_output_renderer callback"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/581#issuecomment-634879258", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/581", "id": 634879258, "node_id": "MDEyOklzc3VlQ29tbWVudDYzNDg3OTI1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-27T19:09:22Z", "updated_at": "2020-05-28T01:33:45Z", "author_association": "OWNER", "body": "OK, the new design: your callback function can take any of the following arguments:\r\n\r\n- `datasette` - a Datasette instance\r\n- `columns` - the list of columns\r\n- `rows` - the list of rows (each one a SQLite `Row` object)\r\n- `sql` - the SQL query being executed\r\n- `query_name` - the name of the canned query, if this is one\r\n- `database` - the database name\r\n- `table` - the table or view name\r\n- `request` - the request object (to be documented in #706)\r\n- `view_name` - the name of the view\r\n\r\nWe will also continue to support the existing `args` and `data` arguments, but these will be undocumented and will be deprecated in Datasette 1.0. UPDATE: Decided against this, see https://github.com/simonw/datasette/issues/581#issuecomment-634946197", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 502993509, "label": "Redesign register_output_renderer callback"}, "performed_via_github_app": null}