From c0f565ce7b955bf0582a84d31c82cbfef6e0970e Mon Sep 17 00:00:00 2001 From: Marco Concetto Rudilosso Date: Thu, 8 Sep 2022 16:30:10 +0200 Subject: [PATCH] Update lib/liquid/tags/render.rb Co-authored-by: Dylan Thacker-Smith --- lib/liquid/tags/render.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/liquid/tags/render.rb b/lib/liquid/tags/render.rb index 34bc6871..30fd67d8 100644 --- a/lib/liquid/tags/render.rb +++ b/lib/liquid/tags/render.rb @@ -31,7 +31,7 @@ module Liquid 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) super @@ -53,6 +53,10 @@ module Liquid end end + def for_loop? + @is_for_loop + end + def render_to_output_buffer(context, output) render_tag(context, output) end