lib/jeanine/app.rb in jeanine-0.2.0 vs lib/jeanine/app.rb in jeanine-0.3.0
- old
+ new
@@ -4,21 +4,26 @@
require 'jeanine/rescuing'
require 'jeanine/response'
require 'jeanine/renderer'
require 'jeanine/routing'
require 'jeanine/session'
+require 'jeanine/view_paths'
module Jeanine
class App
include Session
+ include Rescuing
include Routing::Evaluation
+
attr_reader :request, :response
class << self
include Callbacks
include Routing::DSL
include Rescuing
+ include ViewPaths
+
alias :_new :new
def new(*args, &block)
initialize!
stack.run _new(*args, &block)
stack
@@ -38,11 +43,9 @@
def call(env)
new.call env
end
end
-
- include Rescuing
def call(env)
begin
@env = env
@request = Jeanine::Request.new(env)