Module: Henshin

Defined in:
lib/henshin.rb,
lib/henshin/gen.rb,
lib/henshin/post.rb,
lib/henshin/site.rb,
lib/henshin/labels.rb,
lib/henshin/plugin.rb,
lib/henshin/static.rb,
lib/henshin/archive.rb,
lib/henshin/plugins/sass.rb,
lib/henshin/plugins/liquid.rb,
lib/henshin/plugins/maruku.rb,
lib/henshin/plugins/textile.rb,
lib/henshin/plugins/highlight.rb

Defined Under Namespace

Classes: Archive, Gen, Generator, HighlightPlugin, Label, Labels, Layoutor, LiquidPlugin, MarukuPlugin, Plugin, Post, SassPlugin, Site, Static, TextilePlugin

Constant Summary collapse

Defaults =

Default options for configuration

{'title' => 'A site',
'file_name' => '<{category}/>{title-with-dashes}.{extension}',
'permalink' => '/{year}/{month}/{date}/{title}.html',
'plugins' => ['maruku', 'liquid'],
'root' => './',
'target' => '_site',
'exclude' => []}.freeze
Partials =

Partial regexs for use in parsing file names

{'title' => '([a-zA-Z0-9_ -]+)',
'title-with-dashes' => '([a-zA-Z0-9-]+)',
'date' => '(\d{4}-\d{2}-\d{2})',
'date-time' => '(\d{4}-\d{2}-\d{2} at \d{2}:\d{2})',
'xml-date-time' => '(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?((\+|-)\d{2}:\d{2})?)',
'category' => '([a-zA-Z0-9_ -]+)',
'extension' => "([a-zA-Z0-9_-]+)"}.freeze

Class Method Summary collapse

Class Method Details

.versionString

Reads the current version from VERSION

Returns:

  • (String)

    current version



46
47
48
# File 'lib/henshin.rb', line 46

def self.version
  File.read( File.join(File.dirname(__FILE__), '..', 'VERSION') )
end