diff --git a/base/context.go b/base/context.go index add6757..95b8f68 100644 --- a/base/context.go +++ b/base/context.go @@ -171,11 +171,7 @@ func (c *Context) Commit() error { return errors.New("already committed") } if c.Template != "" && c.view != nil { - out := &bytes.Buffer{} - - if c.Cfg != nil { - c.Data["Config"] = c.Cfg // add configuration to the view data context - } + out := &bytes.Buffer{} err := c.view.Render(out, c.Template, c.Data) if err != nil { return err