{{ define "main" }} {{ with .Params.hero_section }} {{ if .enable }}

Pipelined Relational Query Language, pronounced “Prequel”

{{ .heading | markdownify }}

{{ .bottom_text | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
          {{ .prql_example }}
        
{{ end }} {{ end }}
{{ with .Params.principle_section }} {{/* TODO: can we integrate this with section-cards? It's very similar */}} {{ if .enable }}

{{ .title | markdownify }}

{{ range .items }}

{{ .title | markdownify }}

{{ .main_text | markdownify }}

{{ .content | markdownify }}

{{ end }}
{{ end }} {{ end }} {{ with .Params.showcase_section }} {{ if .enable }}

{{ .title | markdownify }}

{{ range .content }}

{{ . }}

{{ end }} {{ range .buttons }} {{ .label }} {{ end }}
{{ range $index, $e := .examples }}
{{ $e.prql }}
{{ $e.sql }}
{{ end }}
{{ end }} {{ end }} {{ partial "section-cards" .Params.integrations_section }} {{ partial "section-cards" .Params.tools_section }} {{ partial "section-cards" .Params.bindings_section }} {{ partial "section-comments" .Params.comments_section }}
{{ end }}