Sha256: 5a026c3f517723509ac4ccfb9d14559394d378980b388a0c864d4525156f1bd4

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 KB

Contents

module Nanoc2

  # The current nanoc version.
  VERSION = '2.2.3'

  # Generic error. Superclass for all nanoc-specific errors.
  class Error < RuntimeError ; end

  module Errors # :nodoc:

    # Error that is raised when a site is loaded that uses a data source with
    # an unknown identifier.
    class UnknownDataSourceError < Error ; end

    # Error that is raised when a site is loaded that uses a data source with
    # an unknown identifier.
    class UnknownRouterError < Error ; end

    # Error that is raised during site compilation when a page uses a layout
    # that is not present in the site.
    class UnknownLayoutError < Error ; end

    # Error that is raised during site compilation when a page uses a filter
    # that is not known.
    class UnknownFilterError < Error ; end

    # Error that is raised during site compilation when a layout is compiled
    # for which the filter cannot be determined. This is similar to the
    # UnknownFilterError, but specific for filters for layouts.
    class CannotDetermineFilterError < Error ; end

    # Error that is raised during site compilation when a page (directly or
    # indirectly) includes its own page content, leading to endless recursion.
    class RecursiveCompilationError < Error ; end

    # Error that is raised when a certain function or feature is used that is
    # no longer supported by nanoc.
    class NoLongerSupportedError < Error ; end

  end

  module BinaryFilters # :nodoc:
  end

  module DataSources # :nodoc:
  end

  module Helpers # :nodoc:
  end

  module Extra # :nodoc:
  end

  module Filters # :nodoc:
  end

  module Routers # :nodoc:
  end

end

# Load requirements
require 'yaml'
require 'fileutils'

# Load nanoc
require 'nanoc2/base'
require 'nanoc2/extra'
require 'nanoc2/data_sources'
require 'nanoc2/binary_filters'
require 'nanoc2/filters'
require 'nanoc2/routers'
require 'nanoc2/helpers'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc2-2.2.3 lib/nanoc2.rb