[EMAIL PROTECTED] schrieb:
> It is included through master .kid
> <?python
> sidebar = kid.load_template('./sidebar.kid')
> ?>
>
> and used:
>
> <div py:replace = "sidebar.display()" />
>
> My question is, by defining my kid template they way they are
> ( wrapping the sidebar in the display function), do I lose the default
> tg in kid ?
Yes, the special template variables are only added when a template is
rendered through the TurboGears expose decorator. You are using the Kid
rendering functions directly in your template, and that won't work.
One way to get around this would be to turn the sidebar into a widget
and include it on every page with the "tg.include_widgets" configuration
setting:
http://docs.turbogears.org/1.0/Configuration#turbogears-app-cfg-configuration-reference
The other way is to use Kid match templates:
http://docs.turbogears.org/1.0/HeadersFooters
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---