{{ define "main" }} {{- /* The data: each database with a link that opens it in Datasette Lite, with the metadata and its analytics off, and one that downloads it. */ -}} {{- $b := .Params.browse -}}

{{ .Title }}

This site serves the repository's data as {{ .Params.which }}{{ with $b.build }}, built by {{ . }}{{ end }}. Datasette Lite opens each one in your browser, where you can filter its tables, follow their links and run SQL. It downloads Datasette and the whole database first, so the first page takes a while to appear.

{{- range $b.databases }} {{- $query := dict "url" (printf "browse/%s" .file | absURL) "analytics" "off" }} {{- if $b.metadata }}{{ $query = merge $query (dict "metadata" ("browse/metadata.json" | absURL)) }}{{ end }} {{- $lite := printf "https://lite.datasette.io/?%s#/%s" (querify $query) (urlquery .name) }}

{{ .title }}

{{- with .description }}

{{ . }}

{{ end }}

Open in Datasette Lite Download {{ .file }} {{ .size }}

{{- end }}
{{ end }}