Skip to content
chriseppstein edited this page Sep 13, 2010 · 5 revisions

To use compass in Ramaze, first require "compass", then in your controller add
NOTE: This isn’t really tested, please remove this notice if you test this configuration and make any necessary changes.

In theory you can place this in another file or you can load a compass configuration file using Compass.configuration.parse("path/to/config.rb").

engine :Sass
Compass.configuration do |config|
  config.project_path = File.join(File.dirname(__FILE__), "..")
  config.css_dir = "views/stylesheets"
  config.sass_dir = "views/sass"
  config.images_dir = "views/images"
  config.http_path = "/"
  config.http_images_path ="/images"
  config.http_stylesheets_path = "/stylesheets"
  config.http_javascripts_path = "/javascripts"
  config.output_style = :compact
end
trait[:sass_options] = Compass.configuration.to_sass_options
Clone this wiki locally