Documentation ¶
Index ¶
Constants ¶
View Source
const TemplateDirsEnv = "TEMPLATES_DIR"
TemplateDirsEnv is environment key for templates directory
Variables ¶
This section is empty.
Functions ¶
func ParseTemplate ¶
ParseTemplate parses a given template
func SetDefaults ¶
func SetDefaults(app, website, mainColor, secColor string)
SetDefaults sets defaults for email data
Types ¶
type EmailData ¶
type EmailData struct { Names string AccountID string Link string Token string Label string WebsiteURL string AppName string AppDescription string PrimaryColor string SecondaryColor string TemplateName string Reason string }
EmailData contains data that is sent as part of email body
func DefaultEmailData ¶
func DefaultEmailData() *EmailData
DefaultEmailData creates email data with defaults
Click to show internal directories.
Click to hide internal directories.