Pure, beautiful Ruby
Phlex gives you HTML semantics in Ruby so you can use your existing skills designing object-oriented views.
A little string concatenation library.
Phlex gives you HTML semantics in Ruby so you can use your existing skills designing object-oriented views.
Phlex renders HTML at ~1.4gbps per core on a MacBook Pro (M3 Max) and it doesn't slow exponentially the more components you extract.
Plus, you get to use tools like RubyLSP, RuboCop and SimpleCov.
Phlex works great with Rails. It supports all Rails helpers and plays nicely with ERB, ViewComponent, Stimulus, Turbo and Tailwind.
Phlex is designed to structurally prevent cross-site-scripting (XSS) attacks.
Phlex components only depend on the data you pass in, making them easier to test and reuse.
Phlex has no dependencies and the Rails extension only depends on Rails itself.
You can package up components into kits (Ruby modules) for easy reuse across projects.
You can render a view targeting a specific fragment of HTML. Phlex only does the work to render just the parts you want.
Phlex can stream responses to improve time to first byte (TTFB). In some cases users can see the first static content before the database has even responded.