vendor/laravel-frontend-presets/argon/src/argon-stubs/resources/assets/vendor/jekyll/lib/jekyll/convertible.rb
def render_all_layouts(layouts, payload, info)
      # recursively render layouts
      layout = layouts[data["layout"]]

      Jekyll.logger.warn("Build Warning:", "Layout '#{data["layout"]}' requested in #{path} does not exist.") if invalid_layout? layout

      used = Set.new([layout])

      while layout
        payload = Utils.deep_merge_hashes(payload, {"content" => output, "page" => layout.data})

        self.output = render_liquid(layout.content,
                                         payload,
                                         info,
                                         File.join(site.config['layouts'], layout.name))

        # Add layout to dependency tree
        site.regenerator.add_dependency(
          site.in_source_dir(path),
          site.in_source_dir(layout.path)
        )

        if layout = layouts[layout.data["layout"]]
          if used.include?(layout)
            layout = nil # avoid recursive chain
          else
            used << layout
          end
        end
      end
    end
# Recursively render layouts
#
# layouts - a list of the layouts
# payload - the payload for Liquid
# info    - the info for Liquid
#
# Returns nothing
Recursively render layouts
layouts - a list of the layouts
payload - the payload for Liquid
info    - the info for Liquid

Returns nothing
Recursively render layouts layouts - a list of the layouts payload - the payload for Liquid info - the info for Liquid Returns nothing
def render_all_layouts(layouts, payload, info)
      layout = layouts[data["layout"]]
      Jekyll.logger.warn("Build Warning:", "Layout '#{data["layout"]}' requested in #{path} does not exist.") if invalid_layout? layout
      used = Set.new([layout])
      while layout
        payload = Utils.deep_merge_hashes(payload, {"content" => output, "page" => layout.data})
        self.output = render_liquid(layout.content,
                                         payload,
                                         info,
                                         File.join(site.config['layouts'], layout.name))
        site.regenerator.add_dependency(
          site.in_source_dir(path),
          site.in_source_dir(layout.path)
        )
        if layout = layouts[layout.data["layout"]]
          if used.include?(layout)
            layout = nil 
          else
            used << layout
          end
        end
      end
    end
def render_all_layouts ( layouts , payload , info ) layout = layouts [ data [ "layout" ] ] Jekyll . logger . warn ( "Build Warning:" , "Layout '#{data["layout"]}' requested in #{path} does not exist." ) if invalid_layout? layout used = Set . new ( [ layout ] ) while layout payload = Utils . deep_merge_hashes ( payload , { "content" => output , "page" => layout . data } ) self . output = render_liquid ( layout . content , payload , info , File . join ( site . config [ 'layouts' ] , layout . name ) ) site . regenerator . add_dependency ( site . in_source_dir ( path ) , site . in_source_dir ( layout . path ) ) if layout = layouts [ layout . data [ "layout" ] ] if used . include? ( layout ) layout = nil else used << layout end end end end
Recursively render layouts
layouts - a list of the layouts
payload - the payload for Liquid
info    - the info for Liquid
Recursively render layouts layouts - a list of the layouts payload - the payload for Liquid info - the info for Liquid
# recursively render layouts # Add layout to dependency tree # avoid recursive chain
layouts
payload
info