Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] Wee 0.5.0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Michael Neumann, post: 4456926"] Wee's core is very small (but powerful). Including lots of documentation the core is currently just 847 lines. That's where the name originally comes from. Features: * You don't have to care about the HTTP protocol, you don't have to build URL, add query parameters or name form-fields etc... * You can write real components. * Backtracking (Make the browsers back-button working fine) * It comes with a powerful programmatic HTML renderer. Example: # select an object from these items items = [1, 2, 3, 4] # the labels shown to the user labels = items.map {|i| i.to_s} # render it... callback is called with the choosen object from the # items array r.select_list(items).labels(labels).callback {|choosen| p choosen} # render a multi-select list, with objects 2 and 4 selected r.select_list(items).multi.labels(labels).selected([2,4]) Note that in the example above, you don't have to encode the items as you would probably have to in Rails. The items could be any object (Strings, Components... ANY object). * You can call other components. This replaces the current component until the called component returns. Note that this only affect the current component and not it's possible parent components. * You can add decorations to components, which is a very powerful concept. Useful for rendering header/footer around a component, or to prevent unauthorized access to a component etc... * Pure Ruby. What I like is that you don't have to switch between different files (controller and view). Both are dependent anyway. This makes it easier to distribute components, as they are usually only one file. That does not mean, that you can't use templates, you can! * Continuations! This is optional. Might lead to memory problems, but the last memory stress-test was quite positive... needs further testing. * Nemo: rubyforge.org/projects/nemo You can read more about it's features on that page: [URL]http://www.ntecs.de/viewcvs/viewcvs/*checkout*/Wee/trunk/doc/rdoc/index.html[/URL] Stay tuned! I'm currently working on setting up a page dedicated to Wee: [URL]http://ruwee.de[/URL] (it's empty yet). If you're interested in Wee, you might be also interested in Seaside2, Wee's big brother: [URL="http://www.seaside.st"]www.seaside.st[/URL]. Regards, Michael [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] Wee 0.5.0
Top