Skip to content

Commit

Permalink
go-aah/aah#175 fixing template compile order
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Apr 26, 2018
1 parent fc93f62 commit 525d4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go_engine.go
Expand Up @@ -139,7 +139,7 @@ func (e *GoViewEngine) loadLayoutTemplates(layouts []string) error {
}

for _, file := range files {
tfiles := []string{file, layout}
tfiles := []string{layout, file}
tmplKey := StripPathPrefixAt(filepath.ToSlash(file), "views/")
tmpl := e.NewTemplate(tmplKey)
tmplfiles := e.AntiCSRFField.InsertOnFiles(tfiles...)
Expand Down

0 comments on commit 525d4de

Please sign in to comment.