Method: Liquid::For#render_to_output_buffer

Defined in:
lib/liquid/tags/for.rb

#render_to_output_buffer(context, output) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
# File 'lib/liquid/tags/for.rb', line 61

def render_to_output_buffer(context, output)
  segment = collection_segment(context)

  if segment.empty?
    render_else(context, output)
  else
    render_segment(context, output, segment)
  end

  output
end