There is, in fact. Haml 1.5 comes with an "html2haml" executable that transforms plain HTML to exciting Haml. It's not terribly smart, but it's useful for most purposes. It's based on Hpricot, so you'll need to have that installed to use it. Because of this, it doesn't support RHTML yet; Hpricot doesn't understand RHTML tags. If you wanted to add that functionality, though, that would be great; one way you could do it would be to substitute "<%=", "<%", and "%>" for some significant element, like <haml:loud> and <haml:silent> or something like that.
Hope that's helpful! - Nathan Drew Sears wrote: > Is there already an HTML- or RHTML-to-HAML converter? I'd like to make > sure I wouldn't be wasting my time in writing one. =) > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
