Superfluid -- initial hack

This commit is contained in:
Samuel
2019-08-23 14:01:08 -04:00
parent 831355dfbd
commit 84e789e2c1
4 changed files with 253 additions and 1 deletions
+2
View File
@@ -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))
+1 -1
View File
@@ -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