Sha256: f417e5194ef2a6ec7927248d7e4c6ae849b36fdc028d85c477111161d581458d

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

module Nanoc

  VERSION = '2.0'

  def self.load_file(*path)
    full_path = [ File.dirname(__FILE__), 'nanoc' ] + path
    Dir[File.join(full_path)].each { |f| require f }
  end

end

# Load base
Nanoc.load_file('base', 'enhancements.rb')
Nanoc.load_file('base', 'core_ext', '*.rb')
Nanoc.load_file('base', 'plugin.rb')
Nanoc.load_file('base', '*.rb')

# Load plugins
Nanoc.load_file('data_sources', '*.rb')
Nanoc.load_file('filters', '*.rb')
Nanoc.load_file('layout_processors', '*.rb')

# Get global binding
$nanoc_binding = binding

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-2.0 lib/nanoc.rb