class

Liquid::Capture

Inherits Liquid::Block / Liquid::Tag / Reference / Object

Capture stores the result of a block into a variable without rendering it inplace.

{% capture heading %} Monkeys! {% endcapture %} ...

{{ heading }}

Capture is useful for saving content for use later in your template, such as in a sidebar or footer.

Constants

Syntax = /(\w+)/

Constructors

new(tag_name, markup, tokens)
Source

Instance methods

render(context)
Source