In http://groups.google.com/group/weblocks/browse_thread/thread/41da0088c7eed4dc/30f9b5c9a364a184?lnk=gst&q=horizontal+composite#30f9b5c9a364a184 , Leslie posts an algorithm for displaying the elements of a composite widget horizontally that both Slava and Evan seem to take some issue with. Other than just moving the specific styling of ":float left" to a stylesheet, is there a better way to do this? Is the only other alternative to just provide named widgets to composite-widget and then use a stylesheet to say those out?
Right now, I have the somewhat trivial example of just wanting to display two links next to each other separated by a "|". Is the best way to just use Leslie's code for this? It seems overkill to define separate widgets for two render-links, but maybe not. Also, I would like to hear about how you guys think about designing Weblocks applications as well as general tips and rules of thumb you try to follow. There seems to be a lot of new elements to the approach of designing Weblocks apps, and I think I like them, but just don't know if I really get the depth of everything yet (I doubt I do). For example, it seems obvious to me that "Try to avoid HTML in your code" is a somewhat well-established tip (maybe I am wrong though). It also seems like the way to approach writing an app is to write widgets that build upon each other until you basically have a DSL consisting of widgets to write your webapp in (and as a result, am I right in saying that the composite should not really be used that often?). Slava's writeup on Continuations is great and helped me a lot to understand the basics, just wondering what other tips are out there. Thanks, Saikat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" 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/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
