Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { Name string // The name of the contacted person Intros []string // Intro sentences, first displayed in the email Dictionary []Entry // A list of key+value (useful for displaying parameters/settings/personal info) Table Table // Table is an table where you can put data (pricing grid, a bill, and so on) Actions []Action // Actions are a list of actions that the user will be able to execute via a button click Outros []string // Outro sentences, last displayed in the email Greeting string // Greeting for the contacted person (default to 'Hi') Signature string // Signature for the contacted person (default to 'Yours truly') Title string // Title replaces the greeting+name when set FreeMarkdown Markdown // Free markdown content that replaces all content other than header and footer }
Body is the body of the email, containing all interesting data
type Branding ¶
type Branding struct { Name string Link string // e.g. https://google.com Logo string // e.g. https://google.com/img/logo.png Copyright string // Copyright © 2024 Hermes. All rights reserved. TroubleText string // TroubleText is the sentence at the end of the email for users having trouble with the button (default to `If you’re having trouble with the button '{ACTION}', copy and paste the URL below into your web browser.`) }
Appears in header & footer of e-mails
type Email ¶
type Email struct {
Body Body
}
Email is the email containing a body
func (*Email) SetDefaultEmailValues ¶
type Entry ¶
Entry is a simple entry of a map Allows using a slice of entries instead of a map Because Golang maps are not ordered
type Hermes ¶
type Hermes struct { Theme Theme Brand Branding TextDirection TextDirection DisableCSSInlining bool }
Hermes is an instance of the hermes email generator
func (*Hermes) GenerateHTML ¶
GenerateHTML genera el cuerpo del correo electrónico en formato HTML para clientes modernos.
func (*Hermes) GeneratePlainText ¶
GeneratePlainText genera el cuerpo del correo electrónico en formato de texto sin formato para clientes antiguos.
func (*Hermes) SetDefaultHermesValues ¶
default values of the engine
type Markdown ¶
Markdown is a HTML template (a string) representing Markdown content https://en.wikipedia.org/wiki/Markdown
type Table ¶
type Table struct { Data [][]Entry // Contains data Columns Columns // Contains meta-data for display purpose (width, alignement) }
Table is an table where you can put data (pricing grid, a bill, and so on)