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/541#issuecomment-508872137,https://api.github.com/repos/simonw/datasette/issues/541,508872137,MDEyOklzc3VlQ29tbWVudDUwODg3MjEzNw==,9599,simonw,2019-07-05T22:16:57Z,2019-07-05T22:16:57Z,OWNER,"It should allow for awaitables too, to allow for execution of SQL. For example: ```python @hookimpl def extra_template_vars(datasette): async def inner(): first_db = list(datasette.databases.keys())[0] return { ""sqlite_version"": ( await datasette.execute(first_db, ""select sqlite_version()"") ).rows[0][0] } return inner ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",464779810,Plugin hook for adding extra template context variables, https://github.com/simonw/datasette/issues/541#issuecomment-508871981,https://api.github.com/repos/simonw/datasette/issues/541,508871981,MDEyOklzc3VlQ29tbWVudDUwODg3MTk4MQ==,9599,simonw,2019-07-05T22:15:35Z,2019-07-05T22:15:35Z,OWNER,"Example usage: ```python @hookimpl def extra_template_vars(request): return { ""auth"": request.scope.get(""auth""), } ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",464779810,Plugin hook for adding extra template context variables,