package hermes // Default is the theme by default type Default struct{} // Name returns the name of the default theme func (dt *Default) Name() string { return "default" } // HTMLTemplate returns a Golang template that will generate an HTML email. func (dt *Default) HTMLTemplate() string { return `
` } // PlainTextTemplate returns a Golang template that will generate an plain text email. func (dt *Default) PlainTextTemplate() string { return `{{.Email.Body.Greeting}} {{.Email.Body.Name}}, {{ with .Email.Body.Intros }}{{ range $line := . }}{{ $line }}{{ end }}{{ end }} {{ with .Email.Body.Dictionary }}{{ range $entry := . }} {{ $entry.Key }}: {{ $entry.Value }}{{ end }}{{ end }} {{ with .Email.Body.Actions }} {{ range $action := . }} {{ $action.Instructions }} {{ $action.Button.Link }}{{ end }}{{ end }} {{ with .Email.Body.Outros }} {{ range $line := . }} {{ $line }}{{ end }}{{ end }} {{.Email.Body.Signature}}, {{.Hermes.Product.Name}} {{.Hermes.Product.Copyright}} ` }