2009-02-01 22:18:27 +00:00
|
|
|
module Compass
|
2009-08-25 21:18:58 +00:00
|
|
|
module Configuration
|
2009-02-21 01:11:22 +00:00
|
|
|
|
2009-11-28 01:10:48 +00:00
|
|
|
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
|
|
|
|
|
2009-02-21 01:11:22 +00:00
|
|
|
ATTRIBUTES = [
|
2009-11-28 01:10:48 +00:00
|
|
|
# What kind of project?
|
2009-04-05 10:13:42 +00:00
|
|
|
:project_type,
|
2009-11-28 01:10:48 +00:00
|
|
|
# Where is the project?
|
2009-02-21 01:11:22 +00:00
|
|
|
:project_path,
|
2009-08-25 21:18:58 +00:00
|
|
|
:http_path,
|
2009-11-28 01:10:48 +00:00
|
|
|
# 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
|
2009-08-25 21:18:58 +00:00
|
|
|
:output_style,
|
|
|
|
:environment,
|
|
|
|
:relative_assets,
|
2009-06-27 20:05:30 +00:00
|
|
|
:additional_import_paths,
|
2009-08-25 21:18:58 +00:00
|
|
|
:sass_options,
|
2009-12-01 17:57:49 +00:00
|
|
|
attributes_for_directory(:cache, nil),
|
|
|
|
:cache,
|
2009-12-01 07:31:17 +00:00
|
|
|
# Helper configuration
|
2009-08-25 21:18:58 +00:00
|
|
|
:asset_host,
|
2009-11-30 03:05:40 +00:00
|
|
|
:asset_cache_buster,
|
2009-11-30 04:17:30 +00:00
|
|
|
:line_comments,
|
|
|
|
:color_output
|
2009-11-28 01:10:48 +00:00
|
|
|
].flatten
|
2009-02-21 01:11:22 +00:00
|
|
|
|
2009-02-01 22:18:27 +00:00
|
|
|
end
|
2009-08-25 21:18:58 +00:00
|
|
|
end
|
2009-02-03 02:43:17 +00:00
|
|
|
|
2010-01-10 20:26:42 +00:00
|
|
|
['adapters', 'comments', 'defaults', 'helpers', 'inheritance', 'serialization', 'paths', 'data'].each do |lib|
|
2009-09-03 02:47:01 +00:00
|
|
|
require "compass/configuration/#{lib}"
|
2009-02-01 22:18:27 +00:00
|
|
|
end
|