Skip to content
entropie edited this page Sep 20, 2011 · 5 revisions

To use compass in Ramaze, first require "compass", then in your controller add

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