I recommend you to use HAML2ERB service. It's really cool and generates valid ERB/HTML code! The benefits are:
Project was tested on big HAML views (over 800 lines of markup) from the real production app and it worked fine for me.
Good luck!
have you try W2tags, you can even test it live in: w2tags.heroku.com
I just wrote a HAML to ERB translator in Haskell. https://github.com/danchoi/herbalizer
If you're still trying to find a tool for this problem, let me know if it works well enough or not.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With