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

Staticmatic Integration

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

require 'compass'

Compass.configuration do |config|
  # project_path should be the the directory to which the sass directory is relative.
  # I think maybe this should be one more directory up from the configuration file.
  # 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

# 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

StaticMatic Projects:

  • StaticMatic Bootstrap – a base StaticMatic project with support for Haml, Sass, Compass, jQuery and more.
Last edited by adamstac, Tue Nov 03 17:32:53 -0800 2009
Home | Edit | New
Versions: