Actually, if I'm reading this right.... it *shouldn't* compile.

You either have nested information in a haml-tag or you have it on the
same line.

In what you posted, you are saying "Block number 1" on the same line
as the tag, then you are *also* indenting and asking for a render.
This is invalid Haml syntax. If using Ruby fixed your problem, then we
have *another* problem.

-hampton.

On 7/21/07, Vlad Rafeyev <[EMAIL PROTECTED]> wrote:
>
> It usual for me to use empty lines to structure different blocks of
> code.
>
> For example I want to use this:
>
> %h2 Block number 1
>   = render :partial => "num1"
>
> %h2 Block number 2
>   = render :partial => "num2"
>
> But HAML says "no way":
>
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.rstrip
>
> Why so? Why do I need to write my code "line-to-line"? All languages
> just ignoring empty lines, but HAML makes problems of them. Maybe
> there is a way...
>
>
> >
>

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