Christopher Arndt schrieb:
> - Should the Genshi Buffet plugin determine the doctype from the
> template format? Should this be reported as a bug to the Genshi project?

I think Genshi should never send a doctype that is incompatible with the 
format (doctype=HTML and format=XHTML or vice versa), that should really 
be fixed in Genshi. But this will not solve the problem completely, 
because you may want to use compatible, but nevertheless different 
doctype variants for your pages.

Btw, this is not a problem when you're using Kid, since Kid 
automatically chooses the right doctype. Also, if you want a different 
doctype, Kid provides subvariants of format (e.g. "html-quirks" instead 
of "html") or custom serializer instances that can have any doctype in 
the format parameter, so this also works just fine with Kid.

Genshi does not have these subvariants of format and does not offer the 
possibility to pass custom serializer instances for format, that's why 
the problem appears only now when switching from Kid to Genshi.

> - Is there any way to pass additional options to a Buffet engine after
> it has been instantiated, or do we need to change the Buffet API to
> allow this?

As far as I can see, there are no provisions for passing additional 
parameters at render time in Buffet, and passing such parameters would 
break existing implementations. I.e. we would need to make adaptions to 
Genshi, TurboKid, TurboCheetah, TurboJson, etc.

-- Christoph

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

Reply via email to