Class Liquid::Capture
In: lib/liquid/tags/capture.rb
Parent: Block

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

  {% capture heading %}
    Monkeys!
  {% endcapture %}
  ...
  <h1>{{ heading }}</h1>

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

Methods

blank?   new   render  

Constants

Syntax = /(#{VariableSignature}+)/o

Public Class methods

Public Instance methods

[Validate]