public
Description: Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
Home | Edit | New

Ramaze Integration

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

Last edited by ameuret, Fri Jul 24 07:57:22 -0700 2009
Home | Edit | New
Versions: