public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Fix haml_tag again.
nex3 (author)
Thu Jul 03 20:10:53 -0700 2008
commit  07ffc82ee4c5255f5d9f3229d82d0db29a25e21e
tree    a945fb4245942086a181a420997e463965cd586e
parent  a0764dfebe737767e36edba0fcd6c43bef3b695a
...
311
312
313
314
 
315
316
317
...
311
312
313
 
314
315
316
317
0
@@ -311,7 +311,7 @@ module Haml
0
     #
0
     def haml_tag(name, *rest, &block)
0
       name = name.to_s
0
- text = rest.shift.to_s unless rest.first.is_a? Symbol
0
+ text = rest.shift.to_s unless [Symbol, Hash, NilClass].any? {|t| rest.first.is_a? t}
0
       flags = []
0
       flags << rest.shift while rest.first.is_a? Symbol
0
       attributes = Haml::Precompiler.build_attributes(haml_buffer.html?,

Comments

    No one has commented yet.