On 10/26/05, Jeff Watkins <[EMAIL PROTECTED]> wrote: > > Leandro Lucarella wrote: > > That would be great, this way you don't have to make a method for exposing > > JSON and another for exposing a template (I think one of the most amazing > > things about TG is this abstraction). > > Just a note from someone who's doing a *lot* of JSON work: You probably > should differentiate between returning JSON formatted data and a template. > > Most likely the logic is different. There really aren't that many times > when I want to either get a template with the data or the JSON data > itself. I usually want one or the other for each request.
The place where I'd imagine that people would want the method to return either one is in newfangled apps like del.icio.us where you want a public API as well as a web interface. Kevin

