imathis/octopress — pull request #398 by jamesottaway (2012-01-28 13:11:53+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 before looking up the file to be server, because it will still live inside `public`, not under a directory named the same as the root URL parameter.