From: Hannes Wyss Date: 2006-01-14T01:17:07+09:00 Subject: Re: Widget-like API for DOM objects? Dan I can give you this: http://scm.ywesee.com/?p=htmlgrid However, this was one of my very first ruby-projects and basically needs a complete rewrite.. Some of the reasons: - Geared towards Table-Layout, hence the 'grid' - tight coupling to http://scm.ywesee.com/?p=sbsm which is a state-based session-manager - meta-programming by configuration-constants - naming conventions changed in mid-project - nonexistant documentation That said, if you want to try it out and help me get the priorities for a next version straight, you're more than welcome to do so and I hereby pledge my support - which you'll probably need ;) Cheers Hannes On 1/13/06, Daniel Berger wrote: > Hi all, > > Is there something out there that would let me create DOM objects in a more > Rubyesque manner? For example, say I want to create a 'select' object in a web > page. I'd like an API something along these lines: > > select = Select.new > select.options = ["joe", "bob", "moe"] # or {1=>"joe", 2=>"bob", 3=>"moe"} > select.selected_index = 2 > select.title = "Three guys" > select.access_key = "A" > > p select.html # Show html that would be generated using above options > > You get the picture. Is there anything like this out on the RAA? Nothing > immediately jumped out at me. > > Regards, > > Dan > >