On 5/27/07, Julien Cigar <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm new to Pylons and a long-time Genshi user.
>
> I wondered how can I tell to Pylons that the rendered template (with Genshi) 
> should be in utf-8 / xhtml-strict ?
>
> I tried the following (middleware.py) but without success :
> config.template_engines = []
> config.add_template_engine('genshi', 'ias.templates', {'genshi.encoding' : 
> 'utf-8', 'genshi.output' : 'xhtml-strict'})
>
> Any idea ?
>
> Thanks,
> Julien

Hi Julien,

I went down the path you're going down too at one point.  Then I
realized there's a reason that Kid and Genshi use HTML by default:

http://www.mozilla.org/docs/web-developer/faq.html#accept
http://webkit.org/blog/?p=68

Genshi let's you *type* XHTML, but *serve* HTML.  It's the best of
both worlds.  You can switch to serving XHTML as soon as IE actually
supports it and as soon as Mozilla stops telling you not to ;)

Of course, if you're a super advanced XHTML user doing something like
MathML, please feel free to ignore me! ;)

Happy Hacking!
-jj

-- 
http://jjinux.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to