mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
Merge pull request #2 from honux/honux-patch-2
Fix subfolder templating issue Former-commit-id: 2c26fbf9508e94277c04cf48a6713459502720cd
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user