On 8/21/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> You can change their templates today to anything written in other
> "presentation" system...
>
I'd like to see how this works because everything that I've tried
causes 500 errors.  It's mainly due to the following code which will
prevent anything other than a kid template working with a widget.

http://trac.turbogears.org/turbogears/browser/trunk/turbogears/widgets/base.py#L226

> You should be able to use them.  People usually use "widget.render()" in other
> templating systems.

widget.render() also uses the .display() function above.  If I want to
use a widget with a template in Markup it just won't work because it's
template is being parsed by Kid.

> I believe that it would be the responsability of the template system to
> provide alternate templates to widgets...  We can't put that in the core.

*I* believe that it's the responsibility of TurboGears to allow people
to choose which template language to use with their widgets ;)

If there's something fundamental I'm missing here please feel free to
point it out.  I've not looked into this problem much yet.

Regards,

Lee


-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to