On Aug 21, 2006, at 5:50 PM, Alberto Valverde wrote: > This means either "display" or "render" should get deprecated (my > vote goes for display) and both methods return a string via the > engine's "render" method.
Neither should be deprecated, really. display is an optimization for Kid, because it avoids a roundtrip between XML string and elements. (If someone demonstrates that there's no performance impact, I'd be happy to deprecate then). We can make widgets a bit smarter, though. display() could confirm that the widget template is in Kid and, if not, call render() and convert to elements. Additionally, someone who *knows* they're not using Kid can just call render() directly from their template. Kid is, for today, the official template language and so it gets this special treatment. I'm not 100% sure, but I believe I plugged a widget into a Markup template with display() and it just worked, which was surprising. Experimentation with making other template tools work with widgets should stick to the trunk. Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
