Method: Liquid::Capture#render_to_output_buffer
- Defined in:
- lib/liquid/tags/capture.rb
#render_to_output_buffer(context, output) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/liquid/tags/capture.rb', line 34 def render_to_output_buffer(context, output) context.resource_limits.with_capture do capture_output = render(context) context.scopes.last[@to] = capture_output end output end |