Skip to content

Instantly share code, notes, and snippets.

@Draiken
Created May 31, 2012 19:50
Show Gist options
  • Save Draiken/2845787 to your computer and use it in GitHub Desktop.
Save Draiken/2845787 to your computer and use it in GitHub Desktop.
sinatra_problem.rb
require 'bundler/setup'
Bundler.require(:default, :sinatra)
class WatcherApp < ::Sinatra::Base
set :haml, :format => :html5
get '/' do
haml :index
end
get '/watch/' do
haml :watch
end
end
WatcherApp.run!({port: 4567})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment