Herb in Rails 8.2: Your ERB views, now HTML-aware
summary
Rails 8.2 embeds Herb into Action View so ERB templates are parsed with full HTML+Ruby semantics and compiled by a new engine, enabling a linter, formatter, LSP and dev server with live partial updates. Herb 0.11 adds 160+ lint rules and cross-file diagnostics plus runtime instrumentation that maps SQL queries back to ERB tags. The companion Reaction View 0.6 makes existing ERB templates reactive by default with slots, client-side state and two‑way bindings, and the demos (music player, chat) work without extra JS. Dev server hot reloads partials in real time.
AI-written summary · about
chapters (12)
- 0:00Introduction to Herb in Rails 8.2
- 1:09What is Herb?
- 3:17Herb shipping in Rails 8.2
- 7:49What Herb enables
- 9:33Reaction View 0.6 release
- 11:46Reactive templates and slots
- 16:21UI state and two-way bindings
- 21:37Lazy loading with async tags
- 23:47Optimistic UI and client-side rendering
- 25:56CSS and JavaScript scoping
- 27:19Future vision and component abstraction
- 28:47Conclusion and call for feedback
