class Rack::SinglePageApp::Index
Respond to generic server requests with a static HTML index page.
@example
run Rack::SinglePageApp::Index('assets/index.html')
Public Class Methods
new(path)
click to toggle source
@param path [String] Path to static file
Calls superclass method
Rack::SinglePageApp::Base::new
# File lib/rack/single_page_app.rb, line 32 def initialize(path) file = F.expand_path(path) super(F.read(file)) end