Sha256: 02576e55868f70386f29ed82d3549106d76a562f2e42ddc3ffddcaa71b868c81

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

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

require 'rubygems'  if !Object.respond_to?(:gem)

gem 'shake', '>= 0.1.2'
gem 'tilt', '>= 1.2.2'

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

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

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

  Error        = Class.new(StandardError)
  LegacyError  = Class.new(Error)
  VersionError = Class.new(Error)
  NoGemError   = 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"

  def self.version
    VERSION
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydeweb-0.1.6 lib/hyde.rb