all repos — nirvash @ main

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
15
16
17
18
{{ $buildOpts := (.Context).Value "build-options" }}
{{ $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" . }}