mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
Available is never returns false, just re-allocate on .Close - test https://github.com/iris-contrib/tests/blob/master/server_test.go
This commit is contained in:
@@ -123,7 +123,7 @@ func (e *Engine) ExecuteWriter(out io.Writer, name string, binding interface{},
|
||||
isLayout := false
|
||||
|
||||
renderFilename := name
|
||||
if layout != "" && layout != config.NoLayout {
|
||||
if layout != "" {
|
||||
isLayout = true
|
||||
renderFilename = layout // the render becomes the layout, and the name is the partial.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user