Sha256: 30476fdcefefb9f051b7ff62ec8fa778e28d244cd7d75b26c0302b948d1da012

Contents?: true

Size: 230 Bytes

Versions: 27

Compression:

Stored size: 230 Bytes

Contents

require 'erb'

class App
  def initialize
    @view = ERB.new(File.read(File.join(File.dirname(__FILE__), 'view.erb')))
  end

  def call(env)
    return [200, { 'Content-Type' => 'text/html' }, [@view.result(binding)]]
  end
end

Version data entries

27 entries across 6 versions & 1 rubygems

Version Path
distributed_demo-1.0.8 roles/login_box/app.rb
distributed_demo-1.0.8 roles/content/app.rb
distributed_demo-1.0.8 roles/search/app.rb
distributed_demo-1.0.8 roles/new_users/app.rb
distributed_demo-1.0.7 roles/content/app.rb
distributed_demo-1.0.7 roles/search/app.rb
distributed_demo-1.0.7 roles/new_users/app.rb
distributed_demo-1.0.7 roles/login_box/app.rb
distributed_demo-1.0.6 roles/content/app.rb
distributed_demo-1.0.6 roles/new_users/app.rb
distributed_demo-1.0.6 roles/search/app.rb
distributed_demo-1.0.6 roles/login_box/app.rb
distributed_demo-1.0.2 roles/recent_comments/app.rb
distributed_demo-1.0.2 roles/content/app.rb
distributed_demo-1.0.2 roles/old_content/app.rb
distributed_demo-1.0.2 roles/popular/app.rb
distributed_demo-1.0.2 roles/recent_posts/app.rb
distributed_demo-1.0.1 roles/content/app.rb
distributed_demo-1.0.1 roles/recent_posts/app.rb
distributed_demo-1.0.1 roles/recent_comments/app.rb