require "#{File.dirname(__FILE__)}/lib/dolphy"

app = DolphyApplication.app do
  get '/hello' do
    haml :index, :body => "hello"
  end

  get '/wat' do
    erb :what, :body => "WAT"
  end
end

run app

$LOAD_PATH.unshift(File.dirname(__FILE__))
require "lib/dolphy"

app = DolphyApplication.app do
  get '/hello' do
    haml :index, :body => "hello"
  end

  get '/wat' do
    erb :what, :body => "wat"
  end

  get '/' do
    haml :index, :body => "index"
  end
end

run app

Set a page for the root.
Set a page for the root.
