Ticket #2407 (closed task: fixed)
Support Genshi in TG widget templates
|Reported by:||chrisz||Owned by:||chrisz|
|Severity:||normal||Keywords:||genshi kid widgets|
Since TurboGears 1.1 it is possible to use Genshi for page templates, and Genshi has become the default templating engine for TurboGears. Quickstarted projects are created with Genshi templates now. Yet, native TG widgets still can only work with Kid templates; Genshi for widget templates is only possible through ToscaWidgets.
This is a very inconsistent and unsatisfaying state of affairs. TG widgets really should support Genshi templates nowadays, and all the widgets provided by TurboGears should come with Genshi templates instead of Kid templates. This will improve performance, allows us to get rid of the Kid dependency and avoids incompatibilities between the page and widget templating (e.g. #2390).
However, because in the TG 1.x branch backward compatibility is a crucial issue (the main reason why we still are keeping TG 1.x alive), the native TG widgets should still support Kid templates, and the TG widget system should automatically convert the output between templating engines (from Genshi's MarkupStream to Kid's ElementStream and vice versa).