1-9 now..
git-svn-id: svn://hamptoncatlin.com/haml/trunk@5 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
b03cf78f5b
commit
20bc1c314d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue