Hi,
I just started using haml and quickly ran into problem. I am trying to
write equivalent of following in haml:
<% if flash[:notice] -%>
<p style="color: green;"><%= flash[:notice] %></p>
<% end -%>
I thought that something like
.message
= if flash[:notice]
%p= flash[:notice]
= end
I tried few variations but nothing helps. From errors I can conclude
that it doesn't pick up 'end' . Can you show/explain what should I do
here.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---