Skip to content

Staticmatic Integration

chriseppstein edited this page Sep 13, 2010 · 9 revisions

To load compass into your Staticmatic project, set up your src/configuration.rb with the following options:

require 'compass'

Compass.configuration do |config|

  1. project_path should be the the directory to which the sass directory is relative.
  2. I think maybe this should be one more directory up from the configuration file.
  3. Please update this if it is or remove this message if it can stay the way it is.
    config.project_path = File.dirname(FILE)
    config.sass_dir = File.join(‘src’, ‘stylesheets’ )
    end
  1. sass_engine_options returns a hash, you can merge it with other options.
    configuration.sass_options = Compass.sass_engine_options

If you haven’t already done so, install the gem:

gem sources --add http://gems.github.com
sudo gem install chriseppstein-compass

Clone this wiki locally