From 44d93e2c9b6033e83b08c14064e440dadfe3396b 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..7933ee4f 100644 --- a/lib/liquid/tags/render.rb +++ b/lib/liquid/tags/render.rb @@ -31,7 +31,11 @@ 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 for_loop? + @is_for_loop + end def initialize(tag_name, markup, options) super