Move the parse method out of Tag, only blocks need the body parsed.

The parse method should be renamed to something like parse_body,
since that is how it is used, and no non-block tags were using the
parse method.
This commit is contained in:
Dylan Thacker-Smith
2014-03-25 16:16:38 -04:00
parent 0fac50aea7
commit dc78e565ab
3 changed files with 5 additions and 6 deletions
+5
View File
@@ -5,6 +5,11 @@ module Liquid
FullToken = /\A#{TagStart}\s*(\w+)\s*(.*)?#{TagEnd}\z/om
ContentOfVariable = /\A#{VariableStart}(.*)#{VariableEnd}\z/om
def initialize(tag_name, markup, tokens)
super
parse(tokens)
end
def blank?
@blank || false
end
-3
View File
@@ -19,9 +19,6 @@ module Liquid
@options = options
end
def parse(tokens)
end
def name
self.class.name.downcase
end
-3
View File
@@ -35,9 +35,6 @@ module Liquid
end
end
def parse(tokens)
end
def blank?
false
end