From: Bauduin Raphael Date: 2004-07-25T20:01:54+09:00 Subject: Re: rubyonrails and cgikit comparison Gully Foyle wrote: > There seems to be a lot of excitement about rubyonrails even before the > announcement of version 0.5. > > What makes rubyonrails 0.5 more attractive than cgikit 1.2.1? I'm under > the impression cgikit offers MVC and has an architecture similar to > WebObjects (which is well-regarded) but I've no experience with these > tools. I'm using cgikit and starting to look at its code. What I like about it is that it completely separates presentation from code (more so than rails by reading http://media.nextangle.com/rails/ror2bc.pdf, see below). For example, if you want to repeat something your html page, you can use the CKRepetition element like this in your template file: Note that you don't enter any reference to the data you work on, you simply specify an cgikit element named "my repetition". You don't even say which type of element "myrepetition" is. You do that in the binding file: myrepetition : CKRepetition { list = my_items_list; item = current_item; } where my_items_list is an array in your code (which is a class extending CKComponent). When iterating, you can access the current element with current_item. For example, if my_items_list= ["first","second","third"], and you want to display them as an