lib/jekyll/compass/generator.rb
# This is the entry point to our plugin from Jekyll. We setup a compass
# environment and force a full compilation directly into the Jekyll output
# folder.
#
# @param site [Jekyll::Site] The site to generate for
# @return [void]

This is the entry point to our plugin from Jekyll. We setup a compass
environment and force a full compilation directly into the Jekyll output
folder.
This is the entry point to our plugin from Jekyll . We setup a compass environment and force a full compilation directly into the Jekyll output folder .
def generate(site)
        @site = site
        config = configuration(@site.source)
        configure_compass(config)
        unless File.exist? ::Compass.configuration.sass_path
          puts "Unable to find a valid configuration: sass_path=#{::Compass.configuration.sass_path}"
          return
        end
        puts "\rGenerating Compass: #{::Compass.configuration.sass_path}" +
                 " => #{::Compass.configuration.css_path}"
        ::Compass::Commands::UpdateProject.new(@site.config['source'], {:project_type => :jekyll}).execute
        puts
        print "      Generating... "
        nil
      end
def generate ( site ) @site = site config = configuration ( @site . source ) configure_compass ( config ) unless File . exist? :: Compass . configuration . sass_path puts "Unable to find a valid configuration: sass_path=#{::Compass.configuration.sass_path}" return end puts "\rGenerating Compass: #{::Compass.configuration.sass_path}" + " => #{::Compass.configuration.css_path}" :: Compass :: Commands :: UpdateProject . new ( @site . config [ 'source' ] , { :project_type => :jekyll } ) . execute puts print "      Generating... " nil end
This is the entry point to our plugin from Jekyll.
This is the entry point to our plugin from Jekyll .
None
void
site
The site to generate for
The site to generate for