Right now, there's no good way to get rid of  whitespace between tags. 
This is something we're planning on adding in the future (for just this 
reason), but we haven't settled on the exact syntax/semantics yet. For 
the time being, I'd recommend manually generating the tags with a helper:

  def finance_option_item(lease_type)

    "<li><span class='name'>#{h lease_type.name.titleize}</span>" +
      "<span class='amount'>#{h number_to_currency 
car.rate(lease_type)}</span></li>"

  end

Then in your Haml

  %ul.finance_options= @site.lease_types.map(&:finance_option_item).join

As a side note, you don't need to add an explicit "- end" in Haml. You 
can do something like this:

  %ul
    - foos.each do |foo|
      %li= h foo

- Nathan

Nicholas Orr wrote:
>> <div class='car_module'>
>>  <span class='car_name'>VOLVO XC70</span>
>>  <span class='rrp'>RRP $64,450</span>
>>  <span class='term'>5 years</span>
>>  <ul class='finance_options'>
>>    <li><span class='name'>Car Finance</span><span class='amount'>
>> $883.15</span></li>
>>    <li><span class='name'>Car Lease</span><span class='amount'>
>> $879.02</span></li>
>>    <li><span class='name'>Chattel Mortgage</span><span class='amount'>
>> $874.88</span></li>
>>    <li><span class='name'>Hire Purchase</span><span class='amount'>
>> $791.59</span></li>
>>  </ul>
>> </div>
>>     
>
> Google has wrapped the lines above - just so its clear I'd like the following
>
> <li><span class='c'>text</span><span class='d'>text</span></li>
>
> 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