Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 71efb6c566
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (7 sloc) 0.368 kb

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.

Jump to Line
Something went wrong with that request. Please try again.