module Middleman::CoreExtensions::Extensions::InstanceMethods

def initialize

Load features before starting server
def initialize
  super
  self.class.inst = self
  run_hook :before_configuration
  # Search the root of the project for required files
  $LOAD_PATH.unshift(root)
  # Check for and evaluate local configuration
  local_config = File.join(root, "config.rb")
  if File.exists? local_config
    logger.debug "== Reading:  Local config"
    instance_eval File.read(local_config), local_config, 1
  end
  if autoload_sprockets
    begin
      require "middleman-sprockets"
      activate(:sprockets)
    rescue LoadError
    end
  end
  run_hook :build_config if build?
  run_hook :development_config if development?
  run_hook :after_configuration
  logger.debug "Loaded extensions:"
  self.class.extensions.each do |ext|
    logger.debug "== Extension: #{ext}"
  end
end