class Liquid::Capture

Overview

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.

Defined in:

liquid/tags/capture.cr

Constant Summary

Syntax = /(\w+)/

Constructors

Instance Method Summary

Instance methods inherited from class Liquid::Block

block_delimiter block_delimiter, block_name : String block_name, create_variable(token) create_variable, end_tag end_tag, parse(tokens) parse, render(context) render, unknown_tag(tag, params, tokens) unknown_tag

Instance methods inherited from class Liquid::Tag

name name, nodelist : Array(Liquid::Tag | Liquid::Variable | String) nodelist, nodelist=(nodelist : Array(Liquid::Tag | Liquid::Variable | String)) nodelist=, parse(tokens) parse, render(context) render

Constructor methods inherited from class Liquid::Tag

new(tag_name : String, markup : String, tokens) new

Constructor Detail

def self.new(tag_name, markup, tokens) #

[View source]

Instance Method Detail

def render(context) #

[View source]