lib/jekyll/compass/generator.rb
def configure_compass(config)
        ::Compass.add_configuration(config)

        ::Compass.configuration.on_stylesheet_saved(
            &method(:on_stylesheet_saved)
        )
        ::Compass.configuration.on_sprite_saved(
            &method(:on_sprite_saved)
        )
        ::Compass.configuration.on_sprite_removed(
            &method(:on_sprite_removed)
        )

        Dir["#{::Compass.configuration.css_path}/**/*"].each do |path|
          source = real_destination
          @site.static_files <<
              CompassFile.new(
                  @site,
                  source,
                  File.dirname(path)[source.length..-1],
                  File.basename(path)
              )
        end

        nil
      end
# Sets up event handlers with Compass and various other
# configuration setup needs
#
# @param config [::Compass::Configuration::Data] Configuration to pass to Compass and Sass
# @return [void]

Sets up event handlers with Compass and various other
configuration setup needs
Sets up event handlers with Compass and various other configuration setup needs
def configure_compass(config)
        ::Compass.add_configuration(config)
        ::Compass.configuration.on_stylesheet_saved(
            &method(:on_stylesheet_saved)
        )
        ::Compass.configuration.on_sprite_saved(
            &method(:on_sprite_saved)
        )
        ::Compass.configuration.on_sprite_removed(
            &method(:on_sprite_removed)
        )
        Dir["#{::Compass.configuration.css_path}/**/*"].each do |path|
          source = real_destination
          @site.static_files <<
              CompassFile.new(
                  @site,
                  source,
                  File.dirname(path)[source.length..-1],
                  File.basename(path)
              )
        end
        nil
      end
def configure_compass ( config ) :: Compass . add_configuration ( config ) :: Compass . configuration . on_stylesheet_saved ( & method ( :on_stylesheet_saved ) ) :: Compass . configuration . on_sprite_saved ( & method ( :on_sprite_saved ) ) :: Compass . configuration . on_sprite_removed ( & method ( :on_sprite_removed ) ) Dir [ "#{::Compass.configuration.css_path}/**/*" ] . each do | path | source = real_destination @site . static_files << CompassFile . new ( @site , source , File . dirname ( path ) [ source . length .. - 1 ] , File . basename ( path ) ) end nil end
Sets up event handlers with Compass and various other
configuration setup needs
Sets up event handlers with Compass and various other configuration setup needs
None
void
config
Configuration to pass to Compass and Sass
Configuration to pass to Compass and Sass