Introducing Herb: A new HTML-Aware ERB Parser for smarter developer tooling | Marco Roth

25-Apr-2025 25
As web development in Ruby evolves - especially with the rise of Hotwire and HTML-over-the-wire patterns - it’s become clear that traditional ERB tooling hasn’t kept up. Rails has always been a joy to work with and always stood out in it’s developer experience and always had a strong view layer, centered around ERB templates. With the introduction of Hotwire and HTML-over-the-wire becoming the default in Rails 7+, we’re writing more HTML+ERB than ever Herb is designed to bridge that gap. It brings real-time, editor-friendly parsing capabilities to ERB, enabling a wave of new tools like formatters, linters, and language server integrations (LSPs). Herb is fast, fault-tolerant, and deeply aware of the HTML structure. It’s built for developers and tooling developers who want precise, reliable tooling without compromise.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle