Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1bc60ed40f
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.307 kb
class DefaultPage < Rack::Directory
def call(env)
path = env['PATH_INFO']
if path =~ /\/$/ || !(path =~ /\..+$/)
env['PATH_INFO'] = File.join(path, 'index.html')
end
super
end
end
use Rack::Static, :urls => ["/images", "/fonts"], :root => "public"
run DefaultPage.new("public")
Jump to Line
Something went wrong with that request. Please try again.