Exception: Nanoc::Errors::CannotLayoutBinaryItem

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

Overview

Error that is raised when a binary item is attempted to be laid out.

Instance Method Summary (collapse)

Constructor Details

- (CannotLayoutBinaryItem) initialize(rep)

Returns a new instance of CannotLayoutBinaryItem

Parameters:

  • rep (Nanoc::ItemRep)

    The item representation that was attempted to be laid out



135
136
137
# File 'lib/nanoc/base/errors.rb', line 135

def initialize(rep)
  super("The “{rep.item.identifier}” item (rep “#{rep.name}”) cannot be laid out because it is a binary item. If you are getting this error for an item that should be textual instead of binary, make sure that its extension is included in the text_extensions array in the site configuration.")
end