If I understand your question. You can do return response.render(view, context=dict())
On Sunday, 3 June 2012 21:57:59 UTC-5, Alec Taylor wrote: > > Would it be possible to decouple web2py templates to use REST > (HTTP)[XML, CSV, JSON] or RPC (XML, JSON)? > > The primary advantages I see for this is in the simplification for the > creation of: > - Mobile apps (using PhoneGap) > - Easy JavaScript widget extrapolation (Facebook/DISQUS/Twitter style) > > Please tell me if it's possible to decouple the templates, and if so, how. > > Thanks for all information, > > Alec Taylor > > PS: If it's not possible with web2py templates, is there a different > Python template library which makes this possible? >

