Skip to content

Commit

Permalink
comment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 27, 2024
1 parent e0c998c commit f0de748
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions notifications/mailtemplates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ func Available() map[TemplateFile]string {
return availableTemplates
}

// Load function reads the email templates from the specified directory.
// Returns a map with the filename and file absolute path. The filename is
// the key and the path is the value.
// Load function reads the email templates from embedded assets. It reads the
// html files from the "assets" directory and stores the filename and the file
// path in the availableTemplates map. It returns an error if the directory
// could not be read or if the files could not be read.
func Load() error {
// reset the map to store the filename and file paths
availableTemplates = make(map[TemplateFile]string)
Expand Down

0 comments on commit f0de748

Please sign in to comment.