{{ $slug := .FormValue "slug" }}
{{ $title := .FormValue "title" }}
{{ $content := .FormValue "content" }}
{{ $createErr := ((.Context).Value "adapter").CreatePage "" $title $content }}
{{ template "header" . }}
{{ if $createErr }}
There was an error creating the page: {{ ($createErr).Error }}
{{ else }}
Page '{{ $title }}' created successfully
{{ end }}
{{ template "footer" . }}