Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (22 sloc) 0.556 kB
# app.rb
require 'compass'
require 'sinatra'
require 'haml'
require 'sass'
require 'maruku'
require 'coffee-script'
configure do
Compass.add_project_configuration(File.join(Sinatra::Application.root, 'config', 'compass.rb'))
end
set :public_folder, 'public'
get '/' do
haml :index
end
get '/stylesheets/:name.css' do
content_type 'text/css', :charset => 'utf-8'
sass(:"stylesheets/#{params[:name]}", Compass.sass_engine_options)
end
get '/javascripts/:name.js' do
content_type 'text/javascript'
coffee :"/javascripts/#{params[:name]}"
end
Jump to Line
Something went wrong with that request. Please try again.