Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 652 Bytes
require "bundler/setup"
require "pathological"
require "sinatra/base"
require "sinatra/reloader"
require "pinion"
require "pinion/sinatra_helpers"
require "bourbon"
require "coffee-script"
require "sinatra/content_for2"
class App < Sinatra::Base
set :pinion, Pinion::Server.new("/assets")
configure do
pinion.convert :sass => :css
pinion.convert :coffee => :js
end
configure :development do
register Sinatra::Reloader
end
pinion.watch "public"
pinion.watch "#{Gem.loaded_specs["bourbon"].full_gem_path}/app/assets/stylesheets"
helpers Sinatra::ContentFor2, Pinion::SinatraHelpers
get "/" do
erb :index
end
end