HTML-Aware ERB: The Path to Reactive Rendering
summary
Herb ships an HTML-aware ERB parser and engine (Herb v0.10) plus a language server and a local Herb dev server with WebSocket hot-reload and a syntax-tree diff engine that computes minimal edits. It parses render graphs, resolves partials and locals, builds a reverse dependency index for fine-grained DOM updates, and injects outline and jump-to-source dev tools. Early compile-time optimizations show up to 150x speed on static snippets and 3–20x on real pages; GitHub adopts Herb for 10,000+ view files. Production reactive runtime is not finished yet.
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 1:36HTML-aware ERB and Herb project
- 8:03ERB engines and eRubi limitations
- 10:40Herb engine and HTML awareness
- 13:43Improved error messages and dev tools
- 15:34Reactivity and future ambitions
- 17:51Inspiration from other frameworks
- 19:23Understanding templates and state
- 21:37State dependencies and ERB contracts
- 23:26Locals, helpers and unresolved references
- 25:12ActionView tag helpers and parsing
- 27:06Tracking DOM node references
- 28:23Path to reactivity and ReActionView
- 29:04Dev time reactivity and hot reloading
- 32:16Performance optimizations
- 34:21Conclusion and Herb's impact
