Exception: Nanoc::Errors::UnknownLayout

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/base/errors.rb

Overview

Error that is raised during site compilation when an item uses a layout that is not present in the site.

Instance Method Summary (collapse)

Constructor Details

- (UnknownLayout) initialize(layout_identifier)

Returns a new instance of UnknownLayout

Parameters:

  • layout_identifier (String)

    The layout identifier for which no layout could be found



30
31
32
# File 'lib/nanoc/base/errors.rb', line 30

def initialize(layout_identifier)
  super("The site does not have a layout with identifier “#{layout_identifier}”.")
end