Sha256: 632702eed2f2b1d6694764ce2a07775b59030d880dfb7cb556b55138194049ee

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 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

4 entries across 4 versions & 1 rubygems

Version Path
servel-0.8.0 lib/servel/home_app.rb
servel-0.7.0 lib/servel/home_app.rb
servel-0.6.0 lib/servel/home_app.rb
servel-0.5.0 lib/servel/home_app.rb