How to make inline if expression in haml
I have this haml
%table.form_upper{:style => "display:none;", :id => 'profile-info'} %tr{:id => 'some-row'}
How can I display none in this table if the condition is fulfilled, for example, I know that I can do this, but I feel that there should be a built-in way to do this
-if condtion %table.form_upper{:id => 'profile-info'} -else %table.form_upper{:style => "display:none;", :id => 'profile-info'} %tr{:id => 'some-row'}
+6
3 answers