We cannot execute your code, you need to provide us with the error message
you are receiving.

On Thu, Nov 27, 2008 at 7:44 AM, Bharat <[EMAIL PROTECTED]> wrote:

>
> I am gathering speed.  Started using html2haml.  Here is a test case
> (albeit a short-one!):
>
> <%- column_div :type => :primary do -%>
>  <% unless @people.empty? -%>
>    <h2>People</h2>
>    <%= will_paginate %>
>    <ul class="list people">
>      <%= render :partial => @people %>
>    </ul>
>    <%= will_paginate %>
>  <% end -%>
> <%- end -%>
>
> <%- column_div :type => :secondary do -%>
>  <%= render :partial => 'searches/box' %>
>  <%= render :partial => 'shared/minifeed' %>
> <%- end -%>
>
> html2haml translated it to:
>
> - column_div :type => :primary do
> - unless @people.empty?
> %h2
>  People
> = will_paginate
> %ul.list.people
>  = render :partial => @people
> = will_paginate
> - end
> - end
> - column_div :type => :secondary do
> = render :partial => 'searches/box'
> = render :partial => 'shared/minifeed'
> - end
>
> Nothing I could not clean up manually and quickly as follows:
>
> - column_div :type => :primary do
>  - unless @people.empty?
>    %h2 People
>    = will_paginate
>    %ul.list.people
>      = render :partial => @people
>    = will_paginate
> - column_div :type => :secondary do
>  = render :partial => 'searches/box'
>  = render :partial => 'shared/minifeed'
>
> Is there something that I am missing?
>
> Thanks.
>
> Bharat
>
>
> >
>

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