Sha256: 1edcd3ffd27a99e2a3ecb309c654a5e3bd0ee44080fb560835c5bcad0b8e50d1
Contents?: true
Size: 264 Bytes
Versions: 10
Compression:
Stored size: 264 Bytes
Contents
require 'rack' require 'rack-livereload' class IndexRewriter def initialize app @app = app end def call env env["PATH_INFO"].gsub! /\/$/, '/index.html' @app.call env end end use IndexRewriter use Rack::LiveReload run Rack::File.new 'output'
Version data entries
10 entries across 10 versions & 1 rubygems