mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 19:30:47 -07:00
Write one value at a time for array variables
This commit is contained in:
@@ -97,7 +97,7 @@ module Liquid
|
|||||||
obj = render(context)
|
obj = render(context)
|
||||||
|
|
||||||
if obj.is_a?(Array)
|
if obj.is_a?(Array)
|
||||||
output << obj.join
|
obj.each { |o| output << o.to_s }
|
||||||
elsif obj.nil?
|
elsif obj.nil?
|
||||||
else
|
else
|
||||||
output << obj.to_s
|
output << obj.to_s
|
||||||
|
|||||||
Reference in New Issue
Block a user