Awesome dr nic!

Always to the rescue


- Hampton

On Sep 29, 2009, at 6:06 AM, Dr Nic <[email protected]> wrote:

>
> We've spent a few hours fixing an old html2haml bug which probably
> only causes new haml users grief so never got fixed. The patch allows
> conversion of <% if xxx %> inner content <% end %> correctly.
>
>    For example, the following HTML/ERb converts correctly now:
>
>        <% if @post %>
>          <% @post.comments.each do |comment| -%>
>            <p><%= comment.name %></p>
>          <% end -%>
>        <% end %>
>
>    into:
>
>        - if @post
>          - @post.comments.each do |comment|
>            %p
>              = comment.name
>
> We think this covers all the edge cases we've encountered. If anyone
> has any old ERb files that they know haven't converted correctly in
> the past, perhaps give this patch a try.
>
> http://github.com/drnic/haml/commit/6e3e20b169236d33e9f5e227c41d6c6b9dc0c83e
>
> Let me know of any other edge cases that html2haml still fails for and
> I'll have a look (and decide how "edge" they are :)
>
> Dr Nic
>
> >

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