require 'sinatra' require 'coffee-script' require 'sass' Tilt.register Tilt::ERBTemplate, 'handlebars' helpers do def handlebars(name) partial = render :handlebars, :"_#{name}" "" end end error do <<-HTML
The shit hit the fan in such a way that I don't know what to do.
The error message: #{request.env['sinatra.error'].message}
HTML end get "/" do erb :index end get '/app.js' do coffee :app end get '/style.css' do sass :style end