mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57: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:
@@ -233,7 +233,7 @@ func (s *Engine) runtimeFuncsFor(name string, binding interface{}) {
|
||||
|
||||
// ExecuteWriter executes a templates and write its results to the out writer
|
||||
func (s *Engine) ExecuteWriter(out io.Writer, name string, binding interface{}, layout string) error {
|
||||
if layout != "" && layout != config.NoLayout {
|
||||
if layout != "" {
|
||||
s.layoutFuncsFor(name, binding)
|
||||
name = layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user