Skip to content

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

License

Notifications You must be signed in to change notification settings

samsm/rack-static-if-present

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages