body.html 553 B

123456789101112131415161718192021222324
  1. {{ define "body" }}
  2. {{ with $json := handleJson . }}
  3. <pre><code class="json">{{ $json.Str }}</code></pre>
  4. {{ with $json.Err }}
  5. <div class="alert">{{ $json.Err }}</div>
  6. {{ end }}
  7. {{ end }}
  8. {{ with $form := handleForm . }}
  9. <h6>Form Params</h6>
  10. <table class="table params">
  11. {{ range $key, $values := $form }}
  12. {{ range $value := $values }}
  13. <tr>
  14. <th>{{ $key }}</th>
  15. <td>{{ $value }}</td>
  16. </tr>
  17. {{ end }}
  18. {{ end }}
  19. </table>
  20. {{ end }}
  21. {{ end }}