Thanks, I figured something like the gist was possible.  Bad spacing
is unimportant, I think.  There are plenty of html pretty printers out
there, including possibly the one in HAML that could fix that.  I
wonder if avoiding using the constructs in HAML that cannot be used in
ERB would solve most of the problems.

But I will heed your warnings though and not attempt a real version.

On Oct 17, 2:46 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> On Fri, Oct 17, 2008 at 04:23, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>
> > It might be
> > possible to modify the Haml engine to convert a fairly large subset of
> > Haml to ERB, but it would take considerable work to even get to an
> > imperfect implementation.
>
> Here's an imperfect implementation without much 
> work:http://gist.github.com/17371
>
> But yeah, it probably sux for various cases. It doesn't even do the
> indentation right in blocks.
>
> Greg: you may succeed to produce a haml2erb tool, but going bidirectional
> ... I don't think it will ever work. If you have only a slightest
> imperfection in html2haml and haml2erb tools (and just now we saw they had),
> your templates will finish up broken.
--~--~---------~--~----~------------~-------~--~----~
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