mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 11:06:27 +01:00
Merge pull request #2 from honux/honux-patch-2
Fix subfolder templating issue Former-commit-id: 2c26fbf9508e94277c04cf48a6713459502720cd
This commit is contained in:
commit
c15b7725da
|
@ -213,7 +213,7 @@ func (s *AmberEngine) ExecuteWriter(w io.Writer, filename string, layout string,
|
||||||
}
|
}
|
||||||
|
|
||||||
if tmpl := s.fromCache(filename); tmpl != nil {
|
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)
|
return fmt.Errorf("Template with name %s doesn't exists in the dir", filename)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user