class Servel::HomeApp

Constants

FAVICON_PATH

Public Class Methods

new(roots) click to toggle source
# File lib/servel/home_app.rb, line 4
def initialize(roots)
  @roots = roots
end

Public Instance Methods

call(env) click to toggle source
# File lib/servel/home_app.rb, line 8
def call(env)
  return [404, {}, []] if env["PATH_INFO"] == FAVICON_PATH
  Servel::HamlContext.render('home.haml', { roots: @roots })
end