Module: RackStaticApp

Defined in:
lib/rackstaticapp.rb,
lib/rackstaticapp/version.rb

Overview

Zero-configuration convenience wrapper around RackStaticApp::Application, which inherits from Vienna::Application. Add this to your config.ru:

require 'rackstaticapp'
run RackStaticApp

Your static site in public will be served.

Defined Under Namespace

Classes: Application, NotFound, Static

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



18
19
20
# File 'lib/rackstaticapp.rb', line 18

def call(env)
  Application.new.call(env)
end