{{define "message"}} {{ if len .messageContent}} {{ $messageClass := ""}} {{if eq .messageType "success"}} {{ $messageClass = "alert-success"}} {{else if eq .messageType "failure"}} {{ $messageClass = "alert-failure"}} {{ end }}
{{.messageContent}}