1-9 now..

git-svn-id: svn://hamptoncatlin.com/haml/trunk@5 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
hcatlin 2006-07-02 02:12:26 +00:00
parent b03cf78f5b
commit 20bc1c314d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ module HAML
end end
def render_tag(line) def render_tag(line)
line.scan(/[%]([-_a-z0-9]+)([-_a-z.\#]*)([=]?)([^\n]*)/).each do |tag_name, attributes, action, value| line.scan(/[%]([-_a-z1-9]+)([-_a-z.\#]*)([=]?)([^\n]*)/).each do |tag_name, attributes, action, value|
val = template_eval(value) val = template_eval(value)
attribute_hash = parse_attributes(attributes) attribute_hash = parse_attributes(attributes)
attribute_hash.merge!(val) && val = nil if val.class == Hash attribute_hash.merge!(val) && val = nil if val.class == Hash