Like Rack::Static. Except only if there is a static file to serve.
Pull request Compare This branch is 9 commits behind samsm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
rack-static-if-present.gemspec

README.rdoc

Rack Static If Present

Like Rack::Static. Except only if there is a static file to serve.

Use

use Rack::StaticIfPresent, :urls => ["/"], :root => "public"

This would serve files in all directories from public if they exist, or continue down the middleware chain if they don't.

Copyright

Copyright © 2009 Sam Schenkman-Moore. See LICENSE for details.