home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 619593811

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/pull/737#issuecomment-619593811 https://api.github.com/repos/simonw/datasette/issues/737 619593811 MDEyOklzc3VlQ29tbWVudDYxOTU5MzgxMQ== 9599 2020-04-26T17:48:31Z 2020-04-26T17:48:31Z OWNER

Design challenge: the function that can be called in the custom template to return a custom status code and/or headers.

Proposed design: {{ custom_headers({"x-foo": "bar"}) }} {{ custom_status_code(404) }} Or should I combine them into one function? {{ custom_headers({"x-foo": "bar"}, status=404) }} A common use-case here would be a redirect. How should that look? {{ custom_redirect("/foo") }} - defaults to 301 {{ custom_redirect("/foo", status=302) }} Maybe avoid dictionary syntax entirely: {{ custom_header("x-foo", "bar") }}

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
607067303  
Powered by Datasette · Queries took 0.938ms · About: github-to-sqlite