Sha256: 49446af593860dcf429db77e74a687c13ed1824d8087ceb84ead87e9ce0e6659

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

module Nanoc

  # The current nanoc version.
  VERSION = '2.2'

  # 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 'nanoc/base'
require 'nanoc/extra'
require 'nanoc/data_sources'
require 'nanoc/binary_filters'
require 'nanoc/filters'
require 'nanoc/routers'
require 'nanoc/helpers'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-2.2 lib/nanoc.rb