ich diese hamlWie mache ich eine Inline-if-Anweisung in haml
%table.form_upper{:style => "display:none;", :id => 'profile-info'}
%tr{:id => 'some-row'}
habe Wie ich keine auf dieser Tabelle kann angezeigt werden, wenn eine Bedingung wie beispielsweise erfüllt ist ich weiß, ich kann dies tun, aber ich fühle mich hat es bekommt ein Inline-Weg, um dies zu tun
-if condtion
%table.form_upper{:id => 'profile-info'}
-else
%table.form_upper{:style => "display:none;", :id => 'profile-info'}
%tr{:id => 'some-row'}
Oder mehr lapidar: '% table.form_upper # Profil-Informationen (Display = "# {: keine, wenn die Bedingung}")' – Phrogz