Would it be possible to write multiple controller function each with
its own template. Then display each as a element of a tab menu?
Example:
class Root(controllers.RootController):
"""The root controller of the application."""
expose(template="project.templates.template01")
def fun1(self):
return dict(data = data)
expose(template="project.templates.template02")
def fun2(self):
return dict(data = data)
expose(template="project.templates.template03")
def fun3(self):
return dict(data = data)
expose(template="project.templates.view")
def view():
tabber = tabberWidget()
return dict(tabber=tabber)
Where the html would be something like
<div id="tabber" class="tabber">
<div class="tabbertab">
fun1
</div>
<div class="tabbertab">
fun2
</div>
<div class="tabbertab">
fun3
</div>
</div>
Thanks
--
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.