Mike Orr wrote:
> On Thu, Oct 16, 2008 at 10:44 PM, MilesTogoe <[EMAIL PROTECTED]> wrote:
>   
>> I'm using jinja and need to render some xhtml and can't seem to find any
>> examples of how to pass the content type in the view.  Can someone help
>> out?  thks.
>>     
>
> You set the content type in the controller.  response.content_type and
> response.charset attributes.  Other request and response attributes
> are listed at http://pythonpaste.org/webob/reference.html 
>   
thks.  I meant controller (Django keeps getting my vocabulary mixed up) 
and yes, there's a good example in the 0.9.7 documentation under 
controllers (json example but same idea).

ps: kudos to the 0.9.7 setup and how it easily sets up the jinja templating





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to