Search⌘ K
AI Features

Just Use ERB

Understand the advantages of using ERB as the default templating mechanism in Rails. Explore how ERB’s stability, widespread HTML knowledge, and minimal dependencies support sustainable app development and easier maintenance compared to alternatives like HAML or Slim.

We'll cover the following...

Templating mechanism in Rails

The default templating mechanism in Rails is HTML using ERB (which we will refer to simply as ERB even though ERB is a general templating system that can template anything). Some developers strongly believe ERB to be problematic and seek to use alternatives like HAML or Slim. We don’t believe the benefits ascribed to these technologies outweigh the downsides, and we want to talk briefly about why. There are two reasons we believe ERB is the sustainable ...