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

Version Path
scholarmarkdown-3.3.0 bin/template/config.ru
scholarmarkdown-3.2.1 bin/template/config.ru
scholarmarkdown-3.2.0 bin/template/config.ru
scholarmarkdown-3.1.0 bin/template/config.ru
scholarmarkdown-3.0.1 bin/template/config.ru
scholarmarkdown-3.0.0 bin/template/config.ru
scholarmarkdown-2.11.0 bin/template/config.ru
scholarmarkdown-2.10.1 bin/template/config.ru
scholarmarkdown-2.10.0 bin/template/config.ru
scholarmarkdown-2.9.0 bin/template/config.ru