mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:26:26 +01:00
Fix subfolder templating issue
Fixed issue https://github.com/kataras/iris/issues/830 Former-commit-id: 1be9b65fd51322c927ebfdcb835ef1df5b018a5a
This commit is contained in:
parent
3dd9854e70
commit
412c513e5f
|
@ -213,7 +213,7 @@ func (s *AmberEngine) ExecuteWriter(w io.Writer, filename string, layout string,
|
|||
}
|
||||
|
||||
if tmpl := s.fromCache(filename); tmpl != nil {
|
||||
return tmpl.ExecuteTemplate(w, filename, bindingData)
|
||||
return tmpl.Execute(w, bindingData)
|
||||
}
|
||||
|
||||
return fmt.Errorf("Template with name %s doesn't exists in the dir", filename)
|
||||
|
|
Loading…
Reference in New Issue
Block a user