Sha256: c84edec7b92c2f0d06b89acaecb47e14bab642ffb981b47c4b03d3cc7535c683
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Liquid # Echo outputs an expression # # {% echo monkey %} # {% echo user.name %} # # This is identical to variable output syntax, like {{ foo }}, but works # inside {% liquid %} tags. The full syntax is supported, including filters: # # {% echo user | link %} # class Echo < Tag def initialize(tag_name, markup, parse_context) super @variable = Variable.new(markup, parse_context) end def render(context) @variable.render_to_output_buffer(context, +'') end end Template.register_tag('echo', Echo) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liquid-5.0.0 | lib/liquid/tags/echo.rb |