Update lib/liquid/tags/render.rb

Co-authored-by: Dylan Thacker-Smith <[email protected]>
This commit is contained in:
Marco Concetto Rudilosso
2022-09-08 10:37:23 -04:00
committed by Dylan Thacker-Smith
co-authored by Dylan Thacker-Smith
parent 753015d8fc
commit c0f565ce7b
+5 -1
View File
@@ -31,7 +31,7 @@ module Liquid
disable_tags "include" disable_tags "include"
attr_reader :template_name_expr, :variable_name_expr, :attributes, :alias_name, :is_for_loop attr_reader :template_name_expr, :variable_name_expr, :attributes, :alias_name
def initialize(tag_name, markup, options) def initialize(tag_name, markup, options)
super super
@@ -53,6 +53,10 @@ module Liquid
end end
end end
def for_loop?
@is_for_loop
end
def render_to_output_buffer(context, output) def render_to_output_buffer(context, output)
render_tag(context, output) render_tag(context, output)
end end