Sha256: 9a3b938fe41784131fd5b06a0de04a39e7edcaa841f3121e3814ea567088c15c

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

class Servel::HomeApp
  def initialize(roots)
    @roots = roots
  end

  def call(env)
    @haml_context ||= Servel::HamlContext.new
    body = @haml_context.render('home.haml', { roots: @roots })

    [200, {}, [body]]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
servel-0.9.0 lib/servel/home_app.rb