class Liquid::Capture

@liquid_syntax_keyword value The value you want to assign to the variable.
@liquid_syntax_keyword variable The name of the variable being created.
{% endcapture %}
value
{% capture variable %}
@liquid_syntax
You can create complex strings with Liquid logic and variables.
@liquid_description
Creates a new variable with a string value.
@liquid_summary
@liquid_name capture
@liquid_category variable
@liquid_type tag
@liquid_public_docs

def blank?

def blank?
  true
end

def initialize(tag_name, markup, options)

def initialize(tag_name, markup, options)
  super
  if markup =~ Syntax
    @to = Regexp.last_match(1)
  else
    raise SyntaxError, options[:locale].t("errors.syntax.capture")
  end
end

def render_to_output_buffer(context, output)

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