Merge branch 'master' into dont_render_blank_blocks

Conflicts:
	lib/liquid/tag.rb
This commit is contained in:
Florian Weingarten
2013-07-02 14:00:30 -04:00
7 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ module Liquid
when IsTag when IsTag
if token =~ FullToken if token =~ FullToken
# if we found the proper block delimitor just end parsing here and let the outer block # if we found the proper block delimiter just end parsing here and let the outer block
# proceed # proceed
if block_delimiter == $1 if block_delimiter == $1
end_tag end_tag
@@ -50,8 +50,8 @@ module Liquid
end end
end end
# Make sure that its ok to end parsing in the current block. # Make sure that it's ok to end parsing in the current block.
# Effectively this method will throw and exception unless the current block is # Effectively this method will throw an exception unless the current block is
# of type Document # of type Document
assert_missing_delimitation! assert_missing_delimitation!
end end
+1 -1
View File
@@ -53,7 +53,7 @@ module Liquid
# are there any not handled interrupts? # are there any not handled interrupts?
def has_interrupt? def has_interrupt?
!@interrupts.empty? @interrupts.any?
end end
# push an interrupt to the stack. this interrupt is considered not handled. # push an interrupt to the stack. this interrupt is considered not handled.
+1 -1
View File
@@ -5,7 +5,7 @@ module Liquid
parse(tokens) parse(tokens)
end end
# There isn't a real delimter # There isn't a real delimiter
def block_delimiter def block_delimiter
[] []
end end
+1 -1
View File
@@ -1,5 +1,5 @@
module Liquid module Liquid
# A Liquid file system is way to let your templates retrieve other templates for use with the include tag. # A Liquid file system is a way to let your templates retrieve other templates for use with the include tag.
# #
# You can implement subclasses that retrieve templates from the database, from the file system using a different # You can implement subclasses that retrieve templates from the database, from the file system using a different
# path structure, you can provide them as hard-coded inline strings, or any manner that you see fit. # path structure, you can provide them as hard-coded inline strings, or any manner that you see fit.
+1 -1
View File
@@ -2,7 +2,7 @@
# This library is free software. It may be used, redistributed and/or modified # This library is free software. It may be used, redistributed and/or modified
# under the same terms as Ruby itself # under the same terms as Ruby itself
# #
# This extension is usesd in order to expose the object of the implementing class # This extension is used in order to expose the object of the implementing class
# to liquid as it were a Drop. It also limits the liquid-callable methods of the instance # to liquid as it were a Drop. It also limits the liquid-callable methods of the instance
# to the allowed method passed with the liquid_methods call # to the allowed method passed with the liquid_methods call
# Example: # Example:
+2 -2
View File
@@ -11,12 +11,12 @@ module Liquid
input.respond_to?(:size) ? input.size : 0 input.respond_to?(:size) ? input.size : 0
end end
# convert a input string to DOWNCASE # convert an input string to DOWNCASE
def downcase(input) def downcase(input)
input.to_s.downcase input.to_s.downcase
end end
# convert a input string to UPCASE # convert an input string to UPCASE
def upcase(input) def upcase(input)
input.to_s.upcase input.to_s.upcase
end end
+1 -1
View File
@@ -23,4 +23,4 @@ module Liquid
@blank || true @blank || true
end end
end # Tag end # Tag
end # Tag end # Liquid