Skip to content
Browse files

WIP

  • Loading branch information...
1 parent aaf08c7 commit ff86c2599cd3c848840fbcbf83e1f45a29e0d8a1 @bmizerany committed Jan 22, 2009
Showing with 16 additions and 1 deletion.
  1. +10 −0 examples/multiapp.ru
  2. +6 −1 lib/sinatra/base.rb
View
10 examples/multiapp.ru
@@ -0,0 +1,10 @@
+require 'rubygems'
+require File.dirname(__FILE__) + '/../lib/sinatra/base'
+
+use Sinatra do
+ get '/' do
+ 'hello'
+ end
+end
+
+run(lambda { |env| [200, {}, "Not it!"] })
View
7 lib/sinatra/base.rb
@@ -6,6 +6,11 @@
module Sinatra
VERSION = '0.9.0.2'
+ def self.new(app, &blk)
+ Application.instance_eval(&blk)
+ Application.new(app)
+ end
+
class Request < Rack::Request
def user_agent
@env['HTTP_USER_AGENT']
@@ -751,7 +756,7 @@ def metadef(message, &block)
<style type="text/css">
body { text-align:center;font-family:helvetica,arial;font-size:22px;
color:#888;margin:20px;background-image:url(/__sinatra__/legend.gif);
- background-repeat:no-repeat;background-position:center top;}
+ background-repeat:no-repeat;background-position:left top;}
#c {margin:0 auto;width:500px;text-align:left}
</style>
</head>

0 comments on commit ff86c25

Please sign in to comment.
Something went wrong with that request. Please try again.