On Jan 30, 2007, at 6:41 PM, Paul Johnston wrote:
> > Hi, > >> I'm in a bit of loss here... so, is 1.1 finally going to have Genshi >> as a default? I think we coudl safely have Genshi in 1.1 if I/someone >> can find a way to make 1.0 widgets displayable in a genshi template >> without needing ET in the page template. However, I'm not sure if >> it's possible... :( >> >> > Here's an idea: Have TG store the template engine that is in use > for the > request in cherrypy.request, like the widget nesting path is stored at > the moment. The widget display method would return an appropriate type > based on this. Hmmm, that's a good idea that hasn't crossed my mind... If someone feels like implementing it it's fine with me... However, I wouldn't bother with making genshi usable inside widget templates nor allowing mixing kid/genshi widgets in the same stack cause it's tricky stuff and already invented in TW ;) A simple mechanism to discern when widgets are being displayed on a genshi page template or inside another widget (always kid) and convert accordingly is enough. Alberto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
