{{ $requiredClass := "confkey-required" }}{{ $requiredText := "required" }} {{ with .Get "required" }} {{ if (eq . "no") }}{{ $requiredClass = "confkey-notrequired" }}{{ $requiredText = "not required" }} {{ else if (eq . "situational") }}{{ $requiredClass = "confkey-situational" }}{{ $requiredText = "situational" }} {{ end }}{{ end }}
{{ with .Get "type" }}{{ . }}{{ else }}string{{ end }} {{ with .Get "default" }} {{ . }} {{ end }} {{ $requiredText }}