package hermes // Flat is a theme type Flat struct{} // Name returns the name of the flat theme func (dt *Flat) Name() string { return "flat" } // HTMLTemplate returns a Golang template that will generate an HTML email. func (dt *Flat) HTMLTemplate() string { return `
|
{{ $line }}
{{ end }} {{ end }} {{ if (ne .Email.Body.FreeMarkdown "") }} {{ .Email.Body.FreeMarkdown.ToHTML }} {{ else }} {{ with .Email.Body.Dictionary }}{{ $entry.Key }} | {{ end }}
---|
{{ $cell.Value }} | {{ end }}
{{ $action.Instructions }} {{ $action.Button.Link }}
{{ end }} {{ end }} {{ end }} {{ with .Email.Body.Outros }} {{ range $line := . }}{{ $line }}
{{ end }} {{ end }} {{if .Email.Body.Signature }}
{{.Email.Body.Signature}},
{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}
{{.Hermes.Product.Copyright}}
` }