mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
This commit is contained in:
@@ -43,6 +43,12 @@ var (
|
||||
|
||||
// ExecuteWriter calls the correct view Engine's ExecuteWriter func
|
||||
func (v *View) ExecuteWriter(w io.Writer, filename string, layout string, bindingData interface{}) error {
|
||||
if len(filename) > 2 {
|
||||
if filename[0] == '/' { // omit first slash
|
||||
filename = filename[1:]
|
||||
}
|
||||
}
|
||||
|
||||
e := v.Find(filename)
|
||||
if e == nil {
|
||||
return errNoViewEngineForExt.Format(filepath.Ext(filename))
|
||||
|
||||
Reference in New Issue
Block a user