compass/lib/compass.rb

33 lines
798 B
Ruby
Raw Normal View History

module Compass
end
%w(dependencies util browser_support sass_extensions version errors quick_cache logger).each do |lib|
require "compass/#{lib}"
end
require 'sass/callbacks'
module Compass
def base_directory
File.expand_path(File.join(File.dirname(__FILE__), '..'))
end
def lib_directory
File.expand_path(File.join(File.dirname(__FILE__)))
end
def shared_extension_paths
2011-04-29 13:50:11 +00:00
@shared_extension_paths ||= begin
if ENV["HOME"] && File.directory?(ENV["HOME"])
2011-11-17 23:40:42 +00:00
[File.join(ENV["HOME"], ".compass", "extensions")]
2011-04-29 13:50:11 +00:00
else
[]
end
end
end
module_function :base_directory, :lib_directory, :shared_extension_paths
2010-11-29 22:33:57 +00:00
extend QuickCache
end
2011-03-23 05:29:51 +00:00
%w(configuration frameworks app_integration actions compiler).each do |lib|
require "compass/#{lib}"
end