mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
@@ -8,7 +8,7 @@ class CommentForm < Liquid::Block
|
||||
|
||||
if markup =~ SYNTAX
|
||||
@variable_name = Regexp.last_match(1)
|
||||
@attributes = {}
|
||||
@attributes = {}
|
||||
else
|
||||
raise SyntaxError, "Syntax Error in 'comment_form' - Valid syntax: comment_form [article]"
|
||||
end
|
||||
|
||||
@@ -11,7 +11,7 @@ module Database
|
||||
|
||||
# From vision source
|
||||
db['products'].each do |product|
|
||||
collections = db['collections'].find_all do |collection|
|
||||
collections = db['collections'].find_all do |collection|
|
||||
collection['products'].any? { |p| p['id'].to_i == product['id'].to_i }
|
||||
end
|
||||
product['collections'] = collections
|
||||
|
||||
@@ -8,7 +8,7 @@ class Paginate < Liquid::Block
|
||||
|
||||
if markup =~ SYNTAX
|
||||
@collection_name = Regexp.last_match(1)
|
||||
@page_size = if Regexp.last_match(2)
|
||||
@page_size = if Regexp.last_match(2)
|
||||
Regexp.last_match(3).to_i
|
||||
else
|
||||
20
|
||||
|
||||
Reference in New Issue
Block a user