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

nanoc Integration

At the top of the Rules file, load the Compass configuration, like this:

require 'compass'

Compass.configuration.parse 'compass/config.rb' 

Your Compass configuration file (in compass/config.rb) could look like this (you may need to change the path to some directories depending on your directory structure):

http_path    = "/" 
project_path = "." 
css_dir      = "output/assets/style" 
sass_dir     = "content/assets/style" 
images_dir   = "output/assets/images" 

To filter the stylesheets using Sass and Compass, call the sass filter with Sass engine options taken from Compass, like this:

filter :sass, Compass.sass_engine_options

nanoc Projects:

Last edited by ddfreyne, Sat Nov 07 01:23:08 -0800 2009
Home | Edit | New
Versions: