On Mon, 2011-01-03 at 11:48 -0800, Reed O'Brien wrote: > On Jan 3, 5:34 am, Wichert Akkerman <wich...@wiggy.net> wrote: > > On 1/3/11 10:57 , Eric Lemoine wrote: > > > > > @view_config(renderer='json', render_args=dict(cls=MyJSONEncoder)) > > > def my_view(request): > > > return {'content':'Hello!'} > > > > > render_args would include renderer-specific args. > > > > > This is just an example that would work for my use case, but things > > > may look differently. > > > > FWIW I think this is uncommon enough that it is better for you to create > > a custom renderer. > > I agree with Wichert. > > -1 to adding renderer_args
I think I agree that adding a different renderer is the right knob here (rather than adding a knob to the existing json renderer knob). - C -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.