```ruby
require "rubygems"
require "sinatra/base"
require "haml"
require "sass"
require "compass"

def Blossom(config_file, index = :index)
  root = File.dirname(config_file)
  app = Class.new(Sinatra::Base)
  app.class_eval do
    configure do
      set :public, root
      set :views, root
      set :index, index
  
      Compass.configuration do |config|
        config.project_path = root
        config.sass_dir = ""
        config.images_dir = "static"
        config.http_images_path = "/"
        config.output_style = :compact
        config.line_comments = false
      end
  
      set :haml, { :format => :html5, :attr_wrapper => '"' }
      set :sass, Compass.sass_engine_options
    end
  
    get "/" do
      haml settings.index
    end

    def self.file_exists? suffix
      condition do
        basename = File.basename(request.path)
        barename = basename.sub(/\.[^.]*$/, '')
        name = "#{barename}.#{suffix}"
        File.exist? File.join(settings.root, name)
      end
    end
  
    get "/:name.css", :file_exists? => :sass do
      content_type "text/css", :charset => "utf-8"
      sass params[:name].to_sym
    end

    get "/:name", :file_exists? => :haml do
      haml params[:name].to_sym
    end
  end

  app
end
```

Use inline Compass configuration instead of passing block.
user
```ruby
require "rubygems"
require "sinatra/base"
require "haml"
require "sass"
require "compass"

def Blossom(config_file, index = :index)
  root = File.dirname(config_file)
  app = Class.new(Sinatra::Base)
  app.class_eval do
    configure do
      set :public, root
      set :views, root
      set :index, index
  
      Compass.configuration.project_path = root
      Compass.configuration.sass_dir = ""
      Compass.configuration.images_dir = "static"
      Compass.configuration.http_images_path = "/"
      Compass.configuration.output_style = :compact
      Compass.configuration.line_comments = false
  
      set :haml, { :format => :html5, :attr_wrapper => '"' }
      set :sass, Compass.sass_engine_options
    end
  
    get "/" do
      haml settings.index
    end

    def self.file_exists? suffix
      condition do
        basename = File.basename(request.path)
        barename = basename.sub(/\.[^.]*$/, '')
        name = "#{barename}.#{suffix}"
        File.exist? File.join(settings.root, name)
      end
    end
  
    get "/:name.css", :file_exists? => :sass do
      content_type "text/css", :charset => "utf-8"
      sass params[:name].to_sym
    end

    get "/:name", :file_exists? => :haml do
      haml params[:name].to_sym
    end
  end

  app
end
```
assistant