From 9d8e02add7f93c77c54d8772d58756425b3ba995 Mon Sep 17 00:00:00 2001 From: nicola-spb Date: Wed, 10 May 2017 14:53:08 +0300 Subject: [PATCH] Deleted config from view --- base/context.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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