Method: Liquid::Tag#render_to_output_buffer

Defined in:
lib/liquid/tag.rb

#render_to_output_buffer(context, output) ⇒ Object

For backwards compatibility with custom tags. In a future release, the semantics of the render_to_output_buffer method will become the default and the render method will be removed.



59
60
61
62
63
# File 'lib/liquid/tag.rb', line 59

def render_to_output_buffer(context, output)
  render_result = render(context)
  output << render_result if render_result
  output
end