El 24/2/2008, a las 14:58, mixhere escribió:

> <% if login? -%>
>  <div id='a'>
> <% else -%>
>  <div id='b'>
> <% end -%>
>  <div id='c'>
>  I am c
>  </div>
>  </div>
>
>
> - if login?
>  #a
>    #c
> - else
>  #b
>    #c
>
> is there any other ways to not repeat #c two times?

-if login?
   #a
-else
   #b
   #c

Wincent


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to