Sha256: 2e6dafaca140cf9b0c46c9ea1054c0903a8a4850b42aaa2c1ee40b665059f6e3
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 KB
Contents
require 'compass' # # Initialize Archetype and register it as a Compass extension # module Archetype # extension info @archetype = {} @archetype[:name] = 'archetype' @archetype[:path] = File.expand_path(File.join(File.dirname(__FILE__), "..")) # register the extension def self.register Compass::Frameworks.register(@archetype[:name], :path => @archetype[:path]) end # initialize Archetype def self.init # register it self.register # setup configs # locale Compass::Configuration.add_configuration_property(:locale, "the user locale") do 'en_US' end # reading direction (ltr|rtl) Compass::Configuration.add_configuration_property(:reading, "the user interface reading direction") do 'ltr' end # environment Compass::Configuration.add_configuration_property(:environment, "current environment") do :development end # memoize Compass::Configuration.add_configuration_property(:memoize, "should the memoizer be used to improve compilation speed") do not (Compass.configuration.environment || :development).to_s.include?('dev') end end end # init Archetype.init # load dependencies %w(functions sass_extensions).each do |lib| require "archetype/#{lib}" end
Version data entries
6 entries across 6 versions & 1 rubygems