14 lines
461 B
HTML
14 lines
461 B
HTML
|
{{ $slug := .FormValue "slug" }}
|
||
|
{{ $title := .FormValue "title" }}
|
||
|
{{ $content := .FormValue "content" }}
|
||
|
{{ $createErr := ((.Context).Value "adapter").CreatePage "" $title $content }}
|
||
|
|
||
|
{{ template "header" . }}
|
||
|
|
||
|
{{ if $createErr }}
|
||
|
<span class="adapter-error">There was an error creating the page: {{ ($createErr).Error }}</span>
|
||
|
{{ else }}
|
||
|
<span class="adapter-success">Page '{{ $title }}' created successfully</span>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ template "footer" . }}
|