There is currently only one supported way of doing this, but we should
add another.

Right now it is easy to write a render method that configures and uses
genshi however you want.   And your custom render method can be stuck
in the renderers dictionary and even set as the default renderer.

This allows total flexibility in how genshi, mako, jinja2, and
whatever other template engine you want to use are setup -- and does
not limit you to a common subset of features supported by buffet.

But it would probably be a good idea to have a few simple options for
the three default renderers so you don't even have to write the couple
of lines of code required to create your own renderer for those common
cases.

--Mark

On Wed, Feb 25, 2009 at 4:17 AM, Cito <[email protected]> wrote:
>
> On 9 Feb., 17:47, Nick Murdoch <[email protected]> wrote:
>> I've been playing around with TG2 on a prototype project with the view
>> of using it for a real project if it supports everything I need.
>>
>> Currently I'm having trouble finding how I can
>>
>> * change Genshi's output between HTML and XHTML.
>> * change the Genshi default output encoding
>> * Make sure that the HTTP headers returned in the response match the
>> two items above.
>> * Make sure that incoming query string parameters are decoded to
>> unicode strings using the same encoding.
>> * Be able to access the encoding used in my functions
>>
>> So far I've spent about two hours reading through docs and source and
>> haven't been able to find any of this out.
>
> Same for me. Can anybody shed some light on this?
>
> -- Christoph
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

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

Reply via email to