adobe flex; return xml via turbogears/django
Diez B. Roggisch
deets at nospam.web.de
Thu May 29 18:41:32 EDT 2008
Sells, Fred schrieb:
> Diez wrote:
>> Why don't you create KID-template like this:
>>
>> <div py:strip="True">${root}</div>
>>
>> and in the controller say
>>
>> @expose("thexmltemplate")
>> def ...
>> return dict(root=myElementTreeRoot)
>>
> sounds good. Does that "py:strip" remove the <div> and anything outside it. I'll be doing a flex style ajax call and it wants just the xml data tree.
http://www.kid-templating.org/language.html#stripping-tags-py-strip
The time it took to ask the question would have answered it by just
trying...
Diez
More information about the Python-list
mailing list