jamesottaway/blog — pull request #1 by jamesottaway (2012-01-28 13:01:01+00:00)
Title: Better SinatraStaticServer

I'm trying to include my Octopress blog, which uses SinatraStaticServer and config.ru, inside another Rack app (using Rack::URLMap) instead of the more common subdomain approach.

Because of this, I needed to access the SinatraStaticServer class but I didn't want the `run SinatraStaticServer` line at the bottom of the `config.ru`.

I also needed to change the `get` method inside SinatraStaticServer to remove the root of the URL if one is present.