Michael Gale schrieb:
> Hey,
> 
> I want to do the second option, each tab is from a different template.
> However so far I have been unsuccessful.

As I said, it's very simple. Create the templates for each tab, like this:


<div>Tab content 1</div>


Then create a widget in your controller, and return that:

def my_controller_method(self):
     tab1 = Widget(template="foo.templates.tab1")
     tab2 = Widget(template="foo.templates.tab2")
     return dict(tab1=tab1, tab2=tab2,tabber =tabber)


and then just do

  <div class="tabber">

   <div class="tabbertab">

    ${tab1.display()}
   </div>

   <div class="tabbertab">
    ${tab1.display()}
   </div>



Diez

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