ERB Review
Ranked in these QuestionsQuestion Ranking
Pros
Pro Comes with Ruby
Since ERB is included with Ruby out of the box, there is no additional installation and setup required. The fact that it's included by default in Ruby, a lot of projects use it.
Pro HTML with embedded Ruby
ERB is a way to embed Ruby into plain HTML, which means there is no need to learn a new syntax for HTML. This makes ERB fast to learn, and a great option to use on projects that have multiple developers/designers.
Pro Familiar even for developers with no Ruby experience
ERB's interpolated tags are very familiar to developers who have worked with PHP, ASP or JSP, even though they may not have any prior experience with Ruby.
Pro Maintained by Ruby on Rails developers
Due to Ruby on Rails (RoR) use of ERB, the developers of RoR will continue to maintain ERB, guaranteeing project health.
Pro Best Performance
It has the best performance of all of ruby templates, although it wasn't designed for productivity as HAML or SLIM.
Cons
Con Verbose
Since ERB uses HTML syntax with Ruby logic inside it can get a little verbose like HTML files usually do.
Commonly Compared
