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:
parent
d4c7c8c431
commit
1cacde8b4f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue