[TurboGears] Re: Returning a xml fragment

2006-08-24 Thread Todd Pinkerton
I am also doing this -- and as long as the xml is valid (closing all tags and such), it should just work as Diez says. I start my doc with : div xmlns:py=http://purl.org/kid/ns#; and find that I don't need a doctype declaration when doing so.

[TurboGears] Re: Returning a xml fragment

2006-08-23 Thread Diez B. Roggisch
On Wednesday 23 August 2006 08:17, Tobias Brandvik wrote: Hi, Is it possible to have an ajax call to a controller function that returns an html fragment that has been through a template? What I want is something like this: @expose(templates.fragment) def get_fragment(self, title):