Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form.html 556B

123456789101112
  1. <form
  2. {{ with .name }}name="{{ . }}" {{ end }}
  3. {{ with .action }}action="{{ . | safeURL }}" {{ end }}
  4. {{ with .enctype }}enctype="{{ . }}" {{ end }}
  5. {{ with .target }}target="{{ . }}" {{ end }}
  6. {{ with .accept_charset }}accept-charset="{{ . }}" {{ end }}
  7. {{ if eq .novalidate "true" }}novalidate {{ end }}
  8. {{ if in (slice "on" "off") .autocomplete }}autocomplete="{{ .autocomplete }}" {{ end }}
  9. {{ if in (slice "get" "post") .method }}method="{{ .method }}" {{ end }}
  10. class="form{{ with .class }} {{ . }}{{ end }}">
  11. {{ .body }}
  12. </form>