views:

141

answers:

1

In the Compass screencast at 23:08 Chris Eppstein starts editing a file called config.rb, in his pure Compass project. Chris uses this file to configure relative path names in his images using the *img_url()* function (which must be undocumented as I can't find anything about it, in the mailing list or on the website.).

I'm working on a Webby project with Compass Integration, and I can't find a config.rb file in my Webby project. I'm guessing that the SiteFile file in the root directory of my project will do the same thing, but I'm not entirely certain about this.

Does anyone know what the equivalent to the config.rb file is in a Webby/Compass Integrated project?

+1  A: 

Screencast is most likely outdated.

To load compass into your Webby project, set up your Sitefile with the following options:

require 'compass'

Compass.configuration do |config|
  config.project_path = File.dirname(__FILE__)
  config.sass_dir = File.join('src', 'stylesheets' )
end

Webby.site.sass_options.update(Compass.sass_engine_options)

From http://wiki.github.com/chriseppstein/compass/webby-integration

Corban Brook