Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using Blocks
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
NeX  
View profile  
 More options Jun 25, 9:40 am
From: NeX <nex.developm...@gmail.com>
Date: Thu, 25 Jun 2009 06:40:25 -0700 (PDT)
Local: Thurs, Jun 25 2009 9:40 am
Subject: Using Blocks
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Weizenbaum  
View profile  
 More options Jun 26, 2:22 am
From: Nathan Weizenbaum <nex...@gmail.com>
Date: Thu, 25 Jun 2009 23:22:35 -0700
Local: Fri, Jun 26 2009 2:22 am
Subject: Re: [haml] Using Blocks

Yes; the first example is ambiguous with the multiline syntax. Don't put
spaces around your pipes. It's not good Ruby style, anyway.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google