mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Merge branch 'master' into dont_render_blank_blocks
Conflicts: lib/liquid/tag.rb
This commit is contained in:
@@ -19,7 +19,7 @@ module Liquid
|
||||
when IsTag
|
||||
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
|
||||
if block_delimiter == $1
|
||||
end_tag
|
||||
@@ -50,8 +50,8 @@ module Liquid
|
||||
end
|
||||
end
|
||||
|
||||
# Make sure that its ok to end parsing in the current block.
|
||||
# Effectively this method will throw and exception unless the current block is
|
||||
# Make sure that it's ok to end parsing in the current block.
|
||||
# Effectively this method will throw an exception unless the current block is
|
||||
# of type Document
|
||||
assert_missing_delimitation!
|
||||
end
|
||||
|
||||
@@ -53,7 +53,7 @@ module Liquid
|
||||
|
||||
# are there any not handled interrupts?
|
||||
def has_interrupt?
|
||||
!@interrupts.empty?
|
||||
@interrupts.any?
|
||||
end
|
||||
|
||||
# push an interrupt to the stack. this interrupt is considered not handled.
|
||||
|
||||
@@ -5,7 +5,7 @@ module Liquid
|
||||
parse(tokens)
|
||||
end
|
||||
|
||||
# There isn't a real delimter
|
||||
# There isn't a real delimiter
|
||||
def block_delimiter
|
||||
[]
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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
|
||||
# path structure, you can provide them as hard-coded inline strings, or any manner that you see fit.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# This library is free software. It may be used, redistributed and/or modified
|
||||
# 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 the allowed method passed with the liquid_methods call
|
||||
# Example:
|
||||
|
||||
@@ -11,12 +11,12 @@ module Liquid
|
||||
input.respond_to?(:size) ? input.size : 0
|
||||
end
|
||||
|
||||
# convert a input string to DOWNCASE
|
||||
# convert an input string to DOWNCASE
|
||||
def downcase(input)
|
||||
input.to_s.downcase
|
||||
end
|
||||
|
||||
# convert a input string to UPCASE
|
||||
# convert an input string to UPCASE
|
||||
def upcase(input)
|
||||
input.to_s.upcase
|
||||
end
|
||||
|
||||
@@ -23,4 +23,4 @@ module Liquid
|
||||
@blank || true
|
||||
end
|
||||
end # Tag
|
||||
end # Tag
|
||||
end # Liquid
|
||||
|
||||
Reference in New Issue
Block a user