Skip to content

Commit

Permalink
refactor: gohtml to html
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNotGoodName committed Jul 18, 2022
1 parent 3850aaa commit 7b0ca01
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions left/view/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
)

func parseTemplate(name string, templateFS fs.FS) *template.Template {
return template.Must(template.New(name).Funcs(helperMap).ParseFS(templateFS, name, "**/*.gohtml"))
return template.Must(template.New(name).Funcs(helperMap).ParseFS(templateFS, name, "**/*.html"))
}

const (
ErrorPage string = "error.gohtml"
IndexPage string = "index.gohtml"
EnvelopePage string = "envelope.gohtml"
ErrorPage string = "error.html"
IndexPage string = "index.html"
EnvelopePage string = "envelope.html"
)

type IndexData struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7b0ca01

Please sign in to comment.