Skip to content

Instantly share code, notes, and snippets.

@cameroncox
Created July 22, 2008 20:48
Show Gist options
  • Save cameroncox/1272 to your computer and use it in GitHub Desktop.
Save cameroncox/1272 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$: << File.join(File.dirname(__FILE__), "..", "lib", "project")
$: << File.join(File.dirname(__FILE__), "..", "lib", "project", "web")
%w( rack sinatra haml sass ).each { |f| require(f) }
get '/' do
@listings = Listing.all
haml :index
end
get '/style' do
header 'Content-Type' => 'text/css; charset=utf-8'
sass :style
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment