martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Value not found for type render.Render #43

Open hsdk123 opened 9 years ago

hsdk123 commented 9 years ago

I get the error "Value not found for type render.Render" if I import using "github.com/martini-contrib/render", while I don't get it upon using "github.com/codegangsta/martini-contrib/render"

I notice that the files in "github.com/codegangsta/martini-contrib/render" are rather old (not having render.Header(), etc.) and hence I want to use the files from this repository, but I'm getting the error upon using the files here.

yesnault commented 9 years ago

"github.com/codegangsta/martini-contrib/render" is deprecated

Just call m.Use(render.Renderer())

rkoster commented 9 years ago

I can confirm that using m.Use(render.Renderer() fixed the above issue.

madhums commented 9 years ago

I can confirm too, m.Use(render.Renderer()) works.

sergeyklay commented 8 years ago

@yesnault You make my day