class Liquid::Echo
@liquid_syntax_keyword expression The expression to be output.
%}
echo expression
{% liquid
@liquid_syntax
> You can use [filters](/docs/api/liquid/filters) on expressions inside ‘echo` tags.
> Tip:
bracket method, you can use the `echo` tag inside [`liquid` tags](/docs/api/liquid/tags/liquid).
Using the `echo` tag is the same as wrapping an expression in curly brackets (`{{` and `}}`). However, unlike the curly
@liquid_description
Outputs an expression.
@liquid_summary
@liquid_name echo
@liquid_category syntax
@liquid_type tag
@liquid_public_docs
def initialize(tag_name, markup, parse_context)
def initialize(tag_name, markup, parse_context) super @variable = Variable.new(markup, parse_context) end
def render(context)
def render(context) @variable.render_to_output_buffer(context, +'') end