Location of config.rb for Compass Integration with Webby?

0 views
Skip to first unread message

leeand00

unread,
May 13, 2009, 2:57:51 PM5/13/09
to Webby
In the Compass screencast at 23:08 (http://wiki.github.com/
chriseppstein/compass) 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?

Thank you,
Andrew J. Leer

mikel

unread,
Jul 2, 2009, 10:34:28 AM7/2/09
to Webby
Use Sitefile. You can set the config variables in a block like the one
I have below.

.....
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)


On May 13, 12:57 pm, leeand00 <leean...@gmail.com> wrote:
> In theCompassscreencast at 23:08 (http://wiki.github.com/
> chriseppstein/compass) Chris Eppstein starts editing a file called
> config.rb, in his pureCompassproject. 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 withCompassIntegration, 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/CompassIntegrated project?
Reply all
Reply to author
Forward
0 new messages