🧩
HTML-aware
Intelligently recognizes and navigates HTML structure within ERB templates, ensuring precise parsing across interleaved markup and Ruby code.
Herb - The HTML+ERB Toolchain | Herb
An ecosystem of powerful and seamless developer tools for HTML+ERB templates.
🧩
Intelligently recognizes and navigates HTML structure within ERB templates, ensuring precise parsing across interleaved markup and Ruby code.
💎
Powered by Prism, Ruby's new official default parser as of Ruby 3.4. Prism is designed to be error-tolerant and is adopted by major Ruby runtimes including CRuby, JRuby, TruffleRuby.
🚑
Designed to handle errors gracefully, it provides accurate results even when encountering syntax errors.
⚡
Parses input fast enough to update on every keystroke, ensuring real-time responsiveness in text editors and other tools.
📏
Accurately preserves spacing and formatting in the parse result.
🔌
Works seamlessly with Language Server Protocols (LSP) for a better experience in modern editors.
🎯
Tracks precise locations down to individual character offsets for every node and token, enabling precise debugging, annotations, and diagnostics.
🌎
Native bindings for Ruby, Node.js, JavaScript/TypeScript, Java, and Rust.
🏗️
Future updates will expand beyond ERB through a unified parser and syntax tree architecture that maintains consistent APIs across different templating languages.