module Mongrel::Camping

Support for the Camping micro framework at camping.rubyforge.org This implements the unusually long Postamble that Camping usually needs and shrinks it down to just a single line or two.

Your Postamble would now be:

Mongrel::Camping::start("0.0.0.0",3001,"/tepee",Tepee).join

If you wish to get fancier than this then you can use the Camping::CampingHandler directly instead and do your own wiring:

h = Mongrel::HttpServer.new(server, port)
h.register(uri, CampingHandler.new(Tepee))
h.register("/favicon.ico", Mongrel::Error404Handler.new(""))

I add the /favicon.ico since camping apps typically don’t have them and it’s just annoying anyway.