html_url,issue_url,id,node_id,user,user_label,created_at,updated_at,author_association,body,reactions,issue,issue_label,performed_via_github_app https://github.com/simonw/datasette/issues/645#issuecomment-560036585,https://api.github.com/repos/simonw/datasette/issues/645,560036585,MDEyOklzc3VlQ29tbWVudDU2MDAzNjU4NQ==,9599,simonw,2019-12-01T01:28:35Z,2019-12-01T01:28:35Z,OWNER,"Plugins are currently expected to return this: ```python @hookimpl def register_output_renderer(datasette): return { ""extension"": ""test"", ""callback"": render_test } ``` We can add an optional third argument, `""should_suggest""`, which takes the same arguments as the callback but simply returns `True` or `False` depending on if the plugin can work for the current set of data. If that dictionary key is omitted, Datasette will treat this test as returning `True`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633,Mechanism for register_output_renderer to suggest extension or not, https://github.com/simonw/datasette/issues/645#issuecomment-560036740,https://api.github.com/repos/simonw/datasette/issues/645,560036740,MDEyOklzc3VlQ29tbWVudDU2MDAzNjc0MA==,9599,simonw,2019-12-01T01:29:58Z,2019-12-01T01:29:58Z,OWNER,"It should be optionally awaitable - as should the existing `""callback""`. Can use the same pattern as this one: https://github.com/simonw/datasette/blob/8c642f04e0608bf537fdd1f76d64c2367fb04d57/datasette/views/base.py#L124-L135","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",530653633,Mechanism for register_output_renderer to suggest extension or not,