Sha256: fecb982e2a0dd864f79404d91ecd5c93f48eb934e86c30e79512d670999c9944

Contents?: true

Size: 1.27 KB

Versions: 7

Compression:

Stored size: 1.27 KB

Contents

module Compass
  module Configuration

    def self.attributes_for_directory(dir_name, http_dir_name = dir_name)
      [
        "#{dir_name}_dir",
        "#{dir_name}_path",
        ("http_#{http_dir_name}_dir" if http_dir_name),
        ("http_#{http_dir_name}_path" if http_dir_name)
      ].compact.map{|a| a.to_sym}
    end

    ATTRIBUTES = [
      # What kind of project?
      :project_type,
      # Where is the project?
      :project_path,
      :http_path,
      # Where are the various bits of the project
      attributes_for_directory(:css, :stylesheets),
      attributes_for_directory(:sass, nil),
      attributes_for_directory(:images),
      attributes_for_directory(:javascripts),
      attributes_for_directory(:fonts),
      attributes_for_directory(:extensions, nil),
      # Compilation options
      :output_style,
      :environment,
      :relative_assets,
      :additional_import_paths,
      :sass_options,
      attributes_for_directory(:cache, nil),
      :cache,
      # Helper configuration
      :asset_host,
      :asset_cache_buster,
      :line_comments,
      :color_output
    ].flatten

  end
end

['adapters', 'comments', 'defaults', 'helpers', 'inheritance', 'serialization', 'paths', 'data'].each do |lib|
  require "compass/configuration/#{lib}"
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
compass-0.10.0.rc1 lib/compass/configuration.rb
compass-0.10.0.pre9 lib/compass/configuration.rb
compass-0.10.0.pre8 lib/compass/configuration.rb
compass-0.10.0.pre7 lib/compass/configuration.rb
compass-0.10.0.pre6 lib/compass/configuration.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/lib/compass/configuration.rb
compass-0.10.0.pre5 lib/compass/configuration.rb