On 08/06/2010 10:53 PM, BrianTheLion wrote:
> How should all of the code between HTTP and HTML - and there's
> a lot of it; the majority, in fact - be encapsulated? How can we best
> make it reusable?
>   
I think what you want--though I'm not sure--is to make custom
ToscaWidgets.  http://toscawidgets.org/  Each widget contains its own
template, JS/CSS, and display logic
<http://turbogears.org/2.0/docs/main/ToscaWidgets/Creation.html#typical-widget-components>.
 
You can make a widget to display one photo in a gallery, and make a
parent widget that wraps up & displays a list of those photo widgets,
then a parent widget that displays the photo gallery and a sidebar, and
make your whole page a compound widget
<http://turbogears.org/2.0/docs/main/ToscaWidgets/Creation.html#compound-widgets>
full of widgets.

Tim Black

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to