I agree that there is no real need to migrate, you can just mix and match them.
But ... I highly recommend you switch to haml effectively. I feel that the effort to convert erb to haml is not that great. In most cases, you will cut out the elements. The reward, on the other hand, is great.
Haml is much more compact and, most importantly, more readable. Since it is very structured, the attachment is much clearer, and this makes your views more comfortable.
I donβt know about yours, but we had erb templates that were completely unreadable, different developers have different styles, how do you deal with nesting inside erb? nested code? nested code inside elements? nested elements inside code? In haml there is no doubt about this. It's clear. Everything is cut out when you nest. And donβt need to untie, remembering to close </td> or </div> .
It also makes your files much smaller (easier to skip).
There is a really possible performance issue, but if it really bothers you, I would suggest looking slim , which is almost identical to haml, only blindingly fast.
source share