Thanks Nathan, that's a lifesaver! I have a big PHP site I am converting to Rails/HAML... doing the templates by hand would have taken me days.
On Mar 29, 1:47 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > 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. =)- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
