We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
A minimal Sinatra app preconfigured for Compass:
require 'sinatra' require 'haml' require 'sass' require 'compass' configure do Compass.configuration do |config| config.project_path = File.dirname(__FILE__) config.sass_dir = 'views' end set :haml, format: :html5 set :sass, Compass.sass_engine_options set :scss, Compass.sass_engine_options end get '/sass.css' do sass :sass_file end get '/scss.css' do scss :scss_file end
If you keep your stylesheets in "views/stylesheets/" directory instead of just "views/", remember to update sass_dir configuration accordingly.
sass_dir
Check out this sample compass-sinatra project to get up and running in no time!