Hi, I stumbled upon this while converting one of my systems from RHTML to Haml: In order to ensure the generated output was close enough to my input, I did:
$ html2haml application.html.erb |haml Syntax error on line 9: You don't need to use "- end" in Haml. Use indentation instead: - if foo? %strong Foo! - else Not foo. This is because my RHTML included several <% if foo %> ... <% end %> blocks. The following patch fixes this issue: http://pastie.org/343433 It is, yes, too simplistic and checks only for literal 'end' elements - however, I am sure many people have got bitten by this. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
