Skip to content

Commit

Permalink
#108 load templates with embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Apr 6, 2021
1 parent e5bc1cd commit 909e3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

//go:embed error.gohtml
var errorHtml string
var errorTemplate string

// Error provide an error view
func Error(app inter.App, err error) inter.View {
Expand All @@ -36,5 +36,5 @@ type ErrorView struct {

// Template returns the template path
func (e ErrorView) Template() string {
return errorHtml
return errorTemplate
}

0 comments on commit 909e3e6

Please sign in to comment.