all repos — nirvash @ 8fdc9ddb460f6dc76363da7c64bdae15927bf430

modular CMS using the quartzgun library

templates/build_run.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ $buildOpts := .PostForm }}
{{ $status := ((.Context).Value "adapter").Build $buildOpts }}

{{ template "header" . }}

{{ if ne ($status).Success true }}
  <h2>Build Error</h2>
  <span class="adapter-error"><pre>{{($status).Message}}</pre></span>
{{ else }}
  <h2>Build Successful</h2>
  <span class="adapter-success"><pre>{{($status).Message}}</pre></span>
{{ end }}

{{ template "footer" . }}