From: Wilson Bilkovich Date: 2006-10-18T03:00:57+09:00 Subject: Re: Code behind HTML On 10/17/06, Vince /. wrote: > Hi, > > After having some issues with eRuby and embedded ruby in HTML, Im trying > to find out if its possible to develop a web page in the same way that > ASP.NET works. > > Basically you straight HTML with no embedded script and when all the > data is posted back to the server, you can use c# (or any language) to > handle and process the data returned. > > I think CGI is different to what im after. Im looking at doing all my > processing in ruby and keeping my html 'clean' > > Can someone point me in the right direction? > What you've described isn't actually how ASP.NET works, but I can understand what you're looking for. I would say that 'Merb' is probably as close as it gets for Ruby webapps right now: http://brainspl.at/articles/2006/10/09/introducing-the-merb Alternatively (or in addition to Merb), you could go with a templating solution such as Liquid, instead of ERb. That way there's no direct 'Ruby' code mixed into your HTML. Some people like it that way.