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

Version Path
archetype-0.0.1.pre.12 lib/archetype.rb
archetype-0.0.1.pre.11 lib/archetype.rb
archetype-0.0.1.pre.3.00dfd9a lib/archetype.rb
archetype-0.0.1.pre.3.83f0d7a lib/archetype.rb
archetype-0.0.1.pre.3.55c4182 lib/archetype.rb
archetype-0.0.1.pre.3.811928f lib/archetype.rb