scratch/config.ru

11 lines
264 B
Text
Raw Normal View History

require 'rubygems'
require 'rack'
require 'rack-rewrite'
2010-08-23 12:50:49 +00:00
use Rack::Rewrite do
2010-08-23 12:52:52 +00:00
rewrite %r{(.*)/$},"$1/index.html"
2010-08-23 12:50:49 +00:00
end
use Rack::Static, :urls => ["/"], :root => "output"
2010-08-23 12:48:49 +00:00
app = lambda { |env| [404, { 'Content-Type' => 'text/html' }, 'File Not Found'] }
run app