{"action":"created","issue":{"url":"https://api.github.com/repos/labstack/echo/issues/195","labels_url":"https://api.github.com/repos/labstack/echo/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/labstack/echo/issues/195/comments","events_url":"https://api.github.com/repos/labstack/echo/issues/195/events","html_url":"https://github.com/labstack/echo/issues/195","id":104509245,"number":195,"title":"Group Handler Render Template","user":{"login":"laicosly","id":11502642,"avatar_url":"https://avatars.githubusercontent.com/u/11502642?v=3","gravatar_id":"","url":"https://api.github.com/users/laicosly","html_url":"https://github.com/laicosly","followers_url":"https://api.github.com/users/laicosly/followers","following_url":"https://api.github.com/users/laicosly/following{/other_user}","gists_url":"https://api.github.com/users/laicosly/gists{/gist_id}","starred_url":"https://api.github.com/users/laicosly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laicosly/subscriptions","organizations_url":"https://api.github.com/users/laicosly/orgs","repos_url":"https://api.github.com/users/laicosly/repos","events_url":"https://api.github.com/users/laicosly/events{/privacy}","received_events_url":"https://api.github.com/users/laicosly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T15:31:36Z","updated_at":"2015-09-02T15:39:30Z","closed_at":null,"body":"Trying to render templates only works when I register the handler on the root *Echo struct.\r\nworks:\r\n```go\r\n// GET /test\r\n// Status 200\r\ne := echo.New()\r\ne.SetRenderer(t)\r\ne.Get(\"/test\", func(c *echo.Context) error {\r\n  return c.Render(http.StatusOK, \"test\", \"Hello World\")\r\n})\r\n```\r\n\r\nIf I attempt to render a template from a group handler it throws the following error.\r\ndoesn't work:\r\n```go\r\n// GET /my/test\r\n// echo ⇒ renderer not registered\r\ne := echo.New()\r\ne.SetRenderer(t)\r\ng := e.Group(\"/my\")\r\ng.Get(\"/test\", func(c *echo.Context) error {\r\n  return c.Render(http.StatusOK, \"test\", \"Hello World\")\r\n})\r\n```\r\n\r\nIs there a way to render templates inside of a group handler?"},"comment":{"url":"https://api.github.com/repos/labstack/echo/issues/comments/137137206","html_url":"https://github.com/labstack/echo/issues/195#issuecomment-137137206","issue_url":"https://api.github.com/repos/labstack/echo/issues/195","id":137137206,"user":{"login":"laicosly","id":11502642,"avatar_url":"https://avatars.githubusercontent.com/u/11502642?v=3","gravatar_id":"","url":"https://api.github.com/users/laicosly","html_url":"https://github.com/laicosly","followers_url":"https://api.github.com/users/laicosly/followers","following_url":"https://api.github.com/users/laicosly/following{/other_user}","gists_url":"https://api.github.com/users/laicosly/gists{/gist_id}","starred_url":"https://api.github.com/users/laicosly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laicosly/subscriptions","organizations_url":"https://api.github.com/users/laicosly/orgs","repos_url":"https://api.github.com/users/laicosly/repos","events_url":"https://api.github.com/users/laicosly/events{/privacy}","received_events_url":"https://api.github.com/users/laicosly/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T15:39:30Z","updated_at":"2015-09-02T15:39:30Z","body":"Adding the SetRenderer method on *Group seems to work.  Any reason why this shouldn't be done?\r\n```go\r\n// added to github.com/labstack/echo/group.go\r\nfunc (g *Group) SetRenderer(r Renderer) {\r\n\tg.echo.renderer = r\r\n}\r\n```\r\n\r\n```go\r\ne := echo.New()\r\ng := e.Group(\"/my\")\r\ng.SetRenderer(t)\r\ng.Get(\"/test\", func(c *echo.Context) error {\r\n  return c.Render(http.StatusOK, \"test\", \"Hello World\")\r\n})\r\n```"}}