Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master
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.