The Content-type header for XML, HTML, and TXT files are set
automatically if you use the appropriate extensions (xml, html, and
txt respectively). Otherwise, if you used a non-standard extension,
you have to use
web.header('Content-Type', 'text/xml', unique=True)
_before_ you render your template (and not before you actually return it).
On Wed, Jan 20, 2010 at 4:02 PM, geekbuntu <[email protected]> wrote:
> i read this again (http://webpy.org/docs/0.3/templetor) - hoping i had
> missed something, i understand how the template layer populates - just
> would like to understand how to declare the xml on the render - so i
> can post a really large xml file that i do not want to query.
>
> On Jan 20, 9:10 am, Branko Vukelic <[email protected]> wrote:
>> If you mean where it should live, it's in the template directory
>> specified as an argument to render().
>>
>> You can familiarize yourself with Templetor template engine here:
>>
>> http://webpy.org/docs/0.3/templetor
>>
>> On Wed, Jan 20, 2010 at 3:00 PM, geekbuntu <[email protected]> wrote:
>> > was looking at this tutorial - very thankful there was one, but the
>> > referred to "response.xml" is never referred to?
>>
>> >http://webpy.org/cookbok/xmlfiles
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "web.py" 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
>> > athttp://groups.google.com/group/webpy?hl=en.
>>
>> --
>> Branko Vukelić
>>
>> http://foxbunny.tumblr.com/http://www.flickr.com/photos/16889...@n04/http://www.twitter.com/foxbunnyhttp://github.com/foxbunny
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" 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/webpy?hl=en.
>
>
>
>
--
Branko Vukelić
http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.