mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Superfluid -- initial hack
This commit is contained in:
@@ -15,6 +15,8 @@ module Liquid
|
||||
@end_obj = end_obj
|
||||
end
|
||||
|
||||
attr_reader :start_obj, :end_obj
|
||||
|
||||
def evaluate(context)
|
||||
start_int = to_integer(context.evaluate(@start_obj))
|
||||
end_int = to_integer(context.evaluate(@end_obj))
|
||||
|
||||
@@ -46,7 +46,7 @@ module Liquid
|
||||
class For < Block
|
||||
Syntax = /\A(#{VariableSegment}+)\s+in\s+(#{QuotedFragment}+)\s*(reversed)?/o
|
||||
|
||||
attr_reader :collection_name, :variable_name, :limit, :from
|
||||
attr_reader :collection_name, :variable_name, :limit, :from, :for_block
|
||||
|
||||
def initialize(tag_name, markup, options)
|
||||
super
|
||||
|
||||
Reference in New Issue
Block a user