This commit is contained in:
Charles-P. Clermont
2026-01-12 13:06:13 -05:00
parent eaa9f215bf
commit 51ff08db7b
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -12,14 +12,14 @@ LiquidSpec.configure do |config|
end
# Compile a template string into a Liquid::Template
LiquidSpec.compile do |ctx, source, options|
LiquidSpec.compile do |_ctx, source, options|
# Force lax mode
options = options.merge(error_mode: :lax)
Liquid::Template.parse(source, **options)
end
# Render a compiled template with the given context
LiquidSpec.render do |ctx, template, assigns, options|
LiquidSpec.render do |_ctx, template, assigns, options|
registers = Liquid::Registers.new(options[:registers] || {})
context = Liquid::Context.build(