Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 368 Bytes

README.rdoc

File metadata and controls

13 lines (7 loc) · 368 Bytes

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 © 2009 Sam Schenkman-Moore. See LICENSE for details.