Hello, le 22.01.2009 06:41 [email protected] a écrit: > Hi... > > Under TG 1.0, I have a function that I'd like to return text/plain. > I've read over the expose decorator docs and it seems like only json > can avoid templates? Is this true? > > Is there no way to just return either plain text, or even html > bypassing a template engine? > > what about something like @expose() def xxx(self): ... return "my plain text"
Perhaps, you'll to fix the Mime type also ?! > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

