Staticmatic Integration

manuelmeurer 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|
  # project_path should be 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 compass

StaticMatic Projects:

  • StaticMatic Bootstrap – a base StaticMatic project with support for Haml, Sass, Compass, jQuery and more.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.