Le dimanche 24 juin 2007 à 00:33 -0400, Mark Ramm a écrit : > Does anybody use tg_format for anything other than setting up a URL > returns json? > > We are thinking about depricating or dropping support for tg_format > becase we've come up with cleaner ways of doing content negotiation -- > even for http get requests. > > For requests where we can set the accepts header we can just use that. > For URL based content negotiation we can use the extension. > > If we did this /person.html would return HTML and /person.js would > return json (provided you've allowed that with an @expose decorator). > Ideally, this would become extensible so that person.pdf could > return a pdf document if you had a buffet engine which could return > PDF.
How do you manage to serve javascript files then ? I would expect a Javascript file when GETing /person.js ... Regards, Florent. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
