Phlex is a framework for building views in pure Ruby. Instead of using template files like ERB, you write Ruby classes that generate HTML. This approach gives you the full power of Ruby in your views - inheritance, composition, and all the object-oriented patterns you already know.