[Mongrel] eRuby/erb

Zed Shaw zedshaw at zedshaw.com
Mon Jun 26 19:26:10 EDT 2006

On Thu, 2006-06-22 at 16:49 -0400,
jesuswasapurebreed.5.pistos at geoshell.com wrote:
> Hello.  Prospective Mongrel user here.
> Can Mongrel act as a server for eruby or erb files?

Yep, but it'd be difficult since you'd be working right at the bare
metal of HTTP protocol.  Rails is much much better unless you have a
specific need to make a small part faster and can't get rails to go.

If you want to do this, check out the code from svn (or browse it) and
take a look at all of the handlers in the lib/mongrel/handlers.rb file.
The ones there run the range of simple status handlers to gzip output
filters.  There's also the mongrel_upload_progress gem which gives you a
handler done as a ruby gem.

Zed A. Shaw

More information about the Mongrel-users mailing list