public
Rubygem
Description: Liquid markup language. Save, customer facing template language for flexible web apps.
Homepage: http://www.liquidmarkup.org
Clone URL: git://github.com/tobi/liquid.git
Click here to lend your support to: liquid and make a donation at www.pledgie.com !
Ugly hack for compatibility with Rails 2.1
stefanoc (author)
Wed Jun 04 08:18:41 -0700 2008
commit  3ef9d2f4f94eb83c0f45489c75a3518bb91b4cea
tree    7ac001b191cdf0f5d23fc2866e88e1b7982f095a
parent  4c30922d8ec5e40f10adb6911487e90694cab53b
...
131
132
133
134
 
 
135
136
137
...
131
132
133
 
134
135
136
137
138
0
@@ -131,7 +131,8 @@ module Liquid
0
     private
0
     
0
     # Uses the <tt>Liquid::TemplateParser</tt> regexp to tokenize the passed source
0
- def tokenize(source)
0
+ def tokenize(source)
0
+ source = source.source if source.respond_to?(:source)
0
       return [] if source.to_s.empty?
0
       tokens = source.split(TemplateParser)
0
 

Comments

    No one has commented yet.