Sha256: eddbb29f17293dcedfb88b7e6c1d3b99b89a35404cb4c454982a65fa4c1fb362

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

require 'sinatra'

get '*' do
  'Hello, World!'
  # items = request.env.map do |k,v|
  #   "<li><strong>#{k}</strong>: #{v}</li>"
  # end.join("\n")
  # %Q{
  #   <html>
  #     <head>
  #       <title>Sinatra Mongrel2 Test</title>
  #     </head>
  #     <body>
  #       <h1>env</h1>
  #       <ul>
  #         #{items}
  #       </ul>
  #       <hr />
  #       <h1>Params</h1>
  #       #{params}
  #     </body>
  #   </html>
  # }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-mongrel2-0.2.1 example/sinatra/app.rb
rack-mongrel2-0.2.0 example/sinatra/app.rb