Skip to content
ameuret 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 = "public/css"
  config.sass_dir = "view/"
  config.images_dir = "public/images"
  config.http_path = "/"
  config.http_images_path ="/images"
  config.http_stylesheets_path = "/css"
  config.http_javascripts_path = "/javascripts"
  config.output_style = :compact
end
trait[:sass_options] = Compass.configuration.to_sass_engine_options
Clone this wiki locally