From: Nathan Grant Date: 2007-11-07T12:14:57+09:00 Subject: Re: Write webpages in Ruby without Rails? - Newb Question I would recommend the "serve" gem http://wiseheartdesign.com/2007/9/25/introducing-serve/ It makes it simple to code and serve webpages with ruby. But there are lots of options for generating HTML code using ruby, check rubyforge.org for gems like "markaby" or "xx". You can serve page with Mongrel like this: require 'rubygems' gem 'mongrel' require 'mongrel' HOST = '0.0.0.0' PORT = 999 config = Mongrel::Configurator.new :host => HOST, :port => PORT do listener do uri "/", :handler => Mongrel::DirHandler.new(Dir.pwd) end trap("INT") { stop } run end puts "Mongrel running on #{HOST}:#{PORT} with docroot #{Dir.pwd}" config.join