views:

1476

answers:

3

I'm looking for a reliable way to convert a HAML template to an equivalent ERB/HTML template?

Has anyone come across one?

+1  A: 

Apparently there's some challenging issues with translating HAML to ERB, as HAML supports some niceties that don't easily translate back to ERB without parsing the Ruby code. A naive implementation using the HAML engine is here:

HAML to HTML demo

austinfromboston
+1  A: 

have you try W2tags, you can even test it live in: w2tags.heroku.com

wharsojo
A: 

Try http://html2haml.heroku.com/

The Who