1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

More shit.

Now a false on a evaluated line will make the line not render.



git-svn-id: svn://hamptoncatlin.com/haml/trunk@8 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
hcatlin 2006-07-20 21:39:06 +00:00
parent d4c7c8c431
commit 1cacde8b4f

View file

@ -121,7 +121,8 @@ module HAML
if(action == "\/")
atomic_tag(tag_name, attributes)
elsif(action == "=")
print_tag(tag_name, template_eval(value).to_s, attributes)
value = template_eval(value)
print_tag(tag_name, value.to_s, attributes) if value != false
else
print_tag(tag_name, value, attributes)
end