Yes; the first example is ambiguous with the multiline syntax. Don't put spaces around your pipes. It's not good Ruby style, anyway.
On Thu, Jun 25, 2009 at 6:40 AM, NeX <[email protected]> wrote: > > Hi Guys, I'm having a parse problem using blocks on a HAML file. > > Example: > > - @item.each do | item | > = item.title > ..................................... > ..................................... > > To solve the problem I should remove the spaces after the first pipe > and before the last one, like this: > > - @item.each do |item| > = item.title > ..................................... > ..................................... > > Is this related with the multiline string syntax? > > Regards, > -- > NeX > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
