Thanks.

I tried that but was using: - end  .. should have realized
that the - end was not needed and indentation took care of it.

I was looking in http://haml.hamptoncatlin.com/docs/haml
and could not find how to do conditionals.

Maybe you could add a Conditional Execution section to the docs
with this simple example.  : )

Thanks a lot for your help.  This stuff is great!

Todd

On Nov 16, 12:42 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> - if @user.logged_in?
>   YOU ARE LOGGED IN
> - else
>   LOG IN OR SIGN UP
>
> No end required. For future reference, this is covered 
> inhttp://haml.hamptoncatlin.com/docs/:-).
>
> sbtodd wrote:
> > I could not find any example of how to replace something like
> > this that is common in RHTML
>
> > <% if @user.logged_in? %>
> >   YOU ARE LOGGED IN
> > <% else %>
> >   LOG IN OR SIGN UP
> > <% end %>
>
> > How can you do that with HAML??
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to