Hi!
I'm trying to generate some XML (an atom feed) using Genshi template.
Unfortunately I cannot figure out how to convince Genshi to omit the
HTML DOCTYPE declaration for an exposed method:
@expose('...atom_feed', format='xml', content_type='application/
atom+xml')
def feedtest(self):
#...
return dict(...)
Genshi always puts the DOCTYPE at the beginning of the response.
`fragment=True` didn't help (seems to be KID only).
It only worked when disabling the doctype globally in app.conf.
How can I disable it for one single method?
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
-~----------~----~----~----~------~----~------~--~---