mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Allow a Liquid::Drop to be passed into Template#render
This commit is contained in:
@@ -93,6 +93,8 @@ module Liquid
|
||||
context = case args.first
|
||||
when Liquid::Context
|
||||
args.shift
|
||||
when Liquid::Drop
|
||||
Context.new(args.shift, instance_assigns, registers, @rethrow_errors)
|
||||
when Hash
|
||||
Context.new([args.shift, assigns], instance_assigns, registers, @rethrow_errors, @resource_limits)
|
||||
when nil
|
||||
|
||||
Reference in New Issue
Block a user