lib/nanoc3/base/compilation/compiler.rb
# Finds the filter name and arguments to use for the given layout.
#
# @api private
#
# @param [Nanoc3::Layout] layout The layout for which to fetch the filter.
#
# @return [Array, nil] A tuple containing the filter name and the filter 
#   arguments for the given layout.
Finds the filter name and arguments to use for the given layout.
Finds the filter name and arguments to use for the given layout .
def filter_for_layout(layout)
      @layout_filter_mapping.each_pair do |layout_identifier, filter_name_and_args|
        return filter_name_and_args if layout.identifier =~ layout_identifier
      end
      nil
    end
def filter_for_layout ( layout ) @layout_filter_mapping . each_pair do | layout_identifier , filter_name_and_args | return filter_name_and_args if layout . identifier =~ layout_identifier end nil end
Finds the filter name and arguments to use for the given layout.
Finds the filter name and arguments to use for the given layout .
A tuple containing the filter name and the filter arguments for the given layout.
A tuple containing the filter name and the filter arguments for the given layout .
Array, nil
layout
layout The layout for which to fetch the filter.
layout The layout for which to fetch the filter .
api
None