render
render copied to clipboard
Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
bufpool.Get() are now paired with deferred bufpool.Put(). Prior code failed to return the buffer to the bufpool in certain cases.
The framework used in the project needs a function revealing html character string. But the function can't be found in the code. Hence I added a Str method in order...
add jsonp response support
I want to add 2 methods associated at Render interface and rendered struct for retrieving http request and responseWriter This is for use their methods (e.g. req.FormValue() or w.WriteHeader() outside...
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"...
my english is poor,sorry! I just want to do this,in layout ``` html .... {{yield}} ..... {{res}} ``` now,I have a index file named index.html.in the same dir,i have an...
I added a feature of loading templates from binary data generated by go-bindata. I created [`martini-contrib/staticbin`](https://github.com/martini-contrib/staticbin) so that Martini can serve static files from binary data. By adding this feature...
This PR is another approach of martini-contrib/render#28. This PR only adds new functions. I think this PR is more straightforward than martini-contrib/render#28. Please pick out one of these and merge...
Hi, after seeing go-martini/martini@6779472c8685ba4fad5e879a4cb1c10d2fd0f71b i tried to build menus based on the active route. I sucessfully used the approach suggested in #3 for some other helpers and now tried to...