Hi all,

I've started a new project with Genshi for the first time and I want
to use it to output a pure xml file. However, I can only get
TurboGears to find the Genshi templates if they end with '.html',
regardless of what I'm telling expose() the format is.

The actual output if I use .html is fine as xml, but the Content-Type
is still "text/html", even if I explicitly set
cherrypy.response.headers['Content-Type'].

It bothers me (and vim) that I have to call an XML file "*.html". With
Kid I never came across this, since everything had the ambiguous
extension .kid.

Is there a way to get around this? Ideally I'd like Genshi to look for
the right file extension for the format I'm passing in, but in lieu of
that, having a .gen extension for my templates would be just as nice.

Thanks,

Nick Murdoch


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to