Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like Rack::Static. Except only if there is a static file to serve.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Verison bump (0.3.0)
test Pass options to Rack::File.
.document
.gitignore
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
config.ru
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.

Something went wrong with that request. Please try again.