Sha256: 49c1aece238c01be1d7c3ee7521c9949d05807e8ccb2800270f362f4580058a8

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

$:.push *Dir[File.expand_path('../../vendor/*/lib', __FILE__)]

require 'fileutils'
require 'ostruct'
require 'hashie'
require 'yaml'
require 'tilt'
require 'shake'

# For Compass and such
Encoding.default_external = 'utf-8' if defined?(::Encoding)

# HTML files as ERB
Tilt.mappings['html'] = Tilt.mappings['erb']

# Class: Hyde
# The Hyde class.

class Hyde
  PREFIX  = File.expand_path('../', __FILE__)

  Error        = Class.new(StandardError)
  LegacyError  = Class.new(Error)
  VersionError = Class.new(Error)

  # Allowed config filenames
  CONFIG_FILES = ['hyde.conf', '.hyderc']

  autoload :Project, "#{PREFIX}/hyde/project"
  autoload :Page,    "#{PREFIX}/hyde/page"
  autoload :Meta,    "#{PREFIX}/hyde/meta"
  autoload :Config,  "#{PREFIX}/hyde/config"
  autoload :CLI,     "#{PREFIX}/hyde/cli"
  autoload :Set,     "#{PREFIX}/hyde/set"
  autoload :Layout,  "#{PREFIX}/hyde/layout"
  autoload :Partial, "#{PREFIX}/hyde/partial"
  autoload :Helpers, "#{PREFIX}/hyde/helpers"

  require "#{PREFIX}/hyde/version"

  class << self
    # Attribute: project (Hyde)
    # Returns the latest project.
    #
    # ##  Example
    #     Hyde.project.path(:site)

    attr_accessor :project
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydeweb-0.2.3 lib/hyde.rb