From: Matteo Giacomazzi Date: 2001-06-27T15:34:55+09:00 Subject: [ruby-talk:16950] Re: style in ruby cgi scripts Hi Yuri, marted� 26 giugno 2001, hai scritto: > which I personally don't find good style, and unmaintanable for big > and complex cgi scripts. I agree with you and when I'll 'really use' Ruby in my web-applications I'm sure I'll avoid all that 'concatenation' work! Since a cgi object can output a standard HTML document in a string, I guess you should simply store your output in a string or in a structure which reproduce an HTML DOM and that is provided with the to_s method. I guess that's the better way in case of large script and I would avoid eRuby (in that case, I guess that PHP should be better...). > Could you please show me another way, or, if you think this way is > ok, show/send me an example of a complex cgi script? That's what I think... :) Alla prossima!!! Matteo!!! mailto:mgiacoma@dsi.unive.it http://www.dsi.unive.it/~mgiacoma/ ICQ# 24075529