Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Deleted config from view
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-spb committed May 10, 2017
1 parent 4d0e8b5 commit 9d8e02a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions base/context.go
Expand Up @@ -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
Expand Down

0 comments on commit 9d8e02a

Please sign in to comment.