On Monday 26 October 2009 10:41:43 pm Kalium wrote:
> Hi,
> I'm looking for a way to have one controller render more than one
> template. I'm not looking to dynamically _change_ which template I'm
> using, I just want to be able to use the same two templates always.
>
> I could of course just combine the two templates into one template and
> all my problems would be solved. I would rather though keep them
> seperate. This makes it much easier to reuse one in a place I may not
> want to use the other.
>
> Any Ideas?
>

I think what you're trying to do is create reusable snippets. If you're using 
Genshi, look up the xi:include statement, which will pull in a second (third, 
fourth etc) piece of template.

HTH

Uwe


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

Reply via email to