lib/awestruct/handlers/css_tilt_handler.rb
##
# Sass Engine requires dynamically generated options.
##
Sass Engine requires dynamically generated options.
Sass Engine requires dynamically generated options .
def options
        opts = super
        opts[:load_paths] ||= []
        if defined?(::Compass)
          ::Compass::Frameworks::ALL.each do |framework|
            opts[:load_paths] << framework.stylesheets_directory
          end
          opts[:load_paths] << ::Compass::SpriteImporter.new
        end
        opts[:load_paths] << File.join(site.config.dir.to_s, File.dirname(relative_source_path) ) unless relative_source_path.nil?
        opts[:paths] = opts[:load_paths]
        return opts
      end
def options opts = super opts [ :load_paths ] ||= [ ] if defined? ( :: Compass ) :: Compass :: Frameworks :: ALL . each do | framework | opts [ :load_paths ] << framework . stylesheets_directory end opts [ :load_paths ] << :: Compass :: SpriteImporter . new end opts [ :load_paths ] << File . join ( site . config . dir . to_s , File . dirname ( relative_source_path ) ) unless relative_source_path . nil? opts [ :paths ] = opts [ :load_paths ] return opts end
Sass Engine requires dynamically generated options.
Sass Engine requires dynamically generated options .
# Sass / Scss # Less use Paths instead of load_paths