main.go: load SMTP templates
This commit is contained in:
parent
5fe785f2fd
commit
0d6c3b5992
@ -6,6 +6,7 @@ func main() {
|
||||
exitIfError(connectDB())
|
||||
exitIfError(performMigrations())
|
||||
exitIfError(smtpConfigure())
|
||||
exitIfError(smtpTemplatesLoad())
|
||||
exitIfError(oauthConfigure())
|
||||
exitIfError(createMarkdownRenderer())
|
||||
exitIfError(setupSigintCleanup())
|
||||
|
@ -17,7 +17,7 @@ type headerPlugs struct {
|
||||
|
||||
var templates map[string]*template.Template
|
||||
|
||||
func loadTemplates() error {
|
||||
func smtpTemplatesLoad() error {
|
||||
var err error
|
||||
headerTemplate, err = template.New("header").Parse(`MIME-Version: 1.0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
Loading…
Reference in New Issue
Block a user