Class: Hyde

Inherits:
Object
  • Object
show all
Defined in:
lib/hyde.rb,
lib/hyde/cli.rb,
lib/hyde/set.rb,
lib/hyde/meta.rb,
lib/hyde/page.rb,
lib/hyde/config.rb,
lib/hyde/layout.rb,
lib/hyde/server.rb,
lib/hyde/helpers.rb,
lib/hyde/partial.rb,
lib/hyde/project.rb,
lib/hyde/version.rb,
lib/hyde/cli/helpers.rb

Overview

Module: Hyde::Helpers (Hyde) Helpers you can use in your pages.

## Creating your own helpers

To create for own helpers, make an extension. See [Extending Hyde: 
Helpers][1] for more info.

[1]: /extending/helpers.html

Defined Under Namespace

Modules: Helpers, Server Classes: CLI, Config, Layout, Meta, Page, Partial, Project, Set

Constant Summary collapse

PREFIX =
File.expand_path('../', __FILE__)
Error =
Class.new(StandardError)
LegacyError =
Class.new(Error)
VersionError =
Class.new(Error)
CONFIG_FILES =

Allowed config filenames

['hyde.conf', '.hyderc']
VERSION =
"0.2.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.projectObject

Attribute: project (Hyde) Returns the latest project.

## Example

Hyde.project.path(:site)


48
49
50
# File 'lib/hyde.rb', line 48

def project
  @project
end

Class Method Details

.versionObject

Attribute: version (Hyde) Returns the version.

## Example

Hyde.version    #=> "0.2.0"


10
11
12
# File 'lib/hyde/version.rb', line 10

def self.version
  VERSION
end