I’m getting more heavily into RoR development. ERB doesn’t quite feel right to me. I did this once before with JSP. Embedding Ruby code within my markup doesn’t feel like a good plan even if the logic is view specific. Mayhaps my fears are unfounded but it feels dangerous. Plus, there’s lots of typing involved.
I’ve found HAML and I’m giving it some more evaluation. If it is a good alternative, mayhaps you can give some good resources for it.
Beyond HAML, what other alternatives to ERB are there for the Rails View layer?
Are my fears with ERB unjustified?
If you don’t like Ruby in your views, HAML is not going to help you. Although syntactically more succint, it uses embedded Ruby just as ERB does.
If you’d like to avoid logic in your views altogether, have a look at something like Mustache. It uses a templating style that emphasizes a more strict separation of logic from presentation (logic-free views).