Re: [haml] inserting a comma.

2011-06-07 Thread Lorin Tackett
You can use the #{ /* ruby code */ } syntax inline as well, which works 
particularly well for cases like this.

So in your case, since you don't want the space, you could write:

%p
%label Indirizzo:
#{@supplier.address},#{@supplier.street_number}

-- 
Lorin Tackett
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Tuesday, June 7, 2011 at 1:39 AM, mauro wrote:

 I have this code:
 
 %p
  %label Indirizzo:
  = @supplier.address
  = @supplier.street_number
 
 I want to insert a comma between supplier.address and
 supplier.street_number.
 If I do:
 
 %p
  %label Indirizzo:
  = @supplier.address
  ,
  = @supplier.street_number
 
 I have a space after supplier.address and before suppler.street_number
 but I don't want the space after supplier.address.
 How Can I do?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Haml group.
 To post to this group, send email to haml@googlegroups.com 
 (mailto:haml@googlegroups.com).
 To unsubscribe from this group, send email to 
 haml+unsubscr...@googlegroups.com (mailto:haml+unsubscr...@googlegroups.com).
 For more options, visit this group at 
 http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



Re: [haml] inserting a comma.

2011-06-07 Thread Chris Eppstein
= succeed(,) do
  ...

On Tue, Jun 7, 2011 at 1:39 AM, mauro mrsan...@gmail.com wrote:

 I have this code:

 %p
  %label Indirizzo:
  = @supplier.address
  = @supplier.street_number

 I want to insert a comma between supplier.address and
 supplier.street_number.
 If I do:

 %p
  %label Indirizzo:
  = @supplier.address
  ,
  = @supplier.street_number

 I have a space after supplier.address and before suppler.street_number
 but I don't want the space after supplier.address.
 How Can I do?

 --
 You received this message because you are subscribed to the Google Groups
 Haml group.
 To post to this group, send email to haml@googlegroups.com.
 To unsubscribe from this group, send email to
 haml+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/haml?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



Re: [haml] inserting a comma.

2011-06-07 Thread Mauro
On 7 June 2011 19:37, Chris Eppstein ch...@eppsteins.net wrote:
 = succeed(,) do

I don't undestand this, can you do some examples?

-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



Re: [haml] inserting a comma.

2011-06-07 Thread Chris Eppstein
http://haml-lang.com/docs/yardoc/Haml/Helpers.html#succeed-instance_method

On Tue, Jun 7, 2011 at 2:15 PM, Mauro mrsan...@gmail.com wrote:

 On 7 June 2011 19:37, Chris Eppstein ch...@eppsteins.net wrote:
  = succeed(,) do

 I don't undestand this, can you do some examples?

 --
 You received this message because you are subscribed to the Google Groups
 Haml group.
 To post to this group, send email to haml@googlegroups.com.
 To unsubscribe from this group, send email to
 haml+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/haml?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.