lib/nanoc/base/compilation/item_rep_proxy.rb
def layout(layout_identifier, extra_filter_args={})
      set_assigns

      layout = layout_with_identifier(layout_identifier)
      filter_name, filter_args = @compiler.rules_collection.filter_for_layout(layout)
      filter_args = filter_args.merge(extra_filter_args)

      @item_rep.layout(layout, filter_name, filter_args)
    end
# Lays out the item using the given layout. This method will replace the
# content of the `:last` snapshot with the laid out content of the last
# snapshot.
#
# This method is supposed to be called only in a compilation rule block
# (see {Nanoc::CompilerDSL#compile}).
#
# @see Nanoc::ItemRep#layout
#
# @param [String] layout_identifier The identifier of the layout to use
#
# @return [void]
Lays out the item using the given layout. This method will replace the
content of the `:last` snapshot with the laid out content of the last
snapshot.

This method is supposed to be called only in a compilation rule block
.
Lays out the item using the given layout . This method will replace the content of the ` : last ` snapshot with the laid out content of the last snapshot . This method is supposed to be called only in a compilation rule block .
def layout(layout_identifier, extra_filter_args={})
      set_assigns
      layout = layout_with_identifier(layout_identifier)
      filter_name, filter_args = @compiler.rules_collection.filter_for_layout(layout)
      filter_args = filter_args.merge(extra_filter_args)
      @item_rep.layout(layout, filter_name, filter_args)
    end
def layout ( layout_identifier , extra_filter_args = { } ) set_assigns layout = layout_with_identifier ( layout_identifier ) filter_name , filter_args = @compiler . rules_collection . filter_for_layout ( layout ) filter_args = filter_args . merge ( extra_filter_args ) @item_rep . layout ( layout , filter_name , filter_args ) end
Lays out the item using the given layout.
Lays out the item using the given layout .
None
void
layout_identifier
extra_filter_args
layout_identifier The identifier of the layout to use
layout_identifier The identifier of the layout to use
see
None