~/talk

Empowering Developers with HTML-Aware ERB Tooling

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, web-platform]
slides:none on file

A new toolchain named Herp parses ERB files as HTML-aware syntax trees, implemented as a handwritten C99 parser with Ruby and JS bindings, preserving exact source locations and representing ERB control-flow (if/case/loop) as nested nodes. It ships a parser plus upcoming formatter and linter, offers a browser playground, and enables LSP integrations (Stimulus/Turbo/Ruby LSP), view-helper extraction, and multi-file diagnostics so editors can provide accurate autocompletion, diagnostics, and safe interpolation checks.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:13History of Ruby tooling
  3. 3:43Stimulus and Turbo LSPs
  4. 5:25Need for HTML-aware ERB tooling
  5. 6:51Goals for ERB support
  6. 7:33Challenges with ERB parsing
  7. 9:17Why a custom parser was needed
  8. 10:22Introducing Herb parser
  9. 11:30Herb parser features
  10. 13:16Herb parser usage and bindings
  11. 13:59Parsing HTML in ERB files
  12. 14:41Handling partial HTML elements
  13. 16:10Parsing ERB control flow
  14. 17:33Nested HTML in ERB constructs
  15. 18:37Supported ERB constructs
  16. 19:00Herb's first public release
  17. 19:21Interactive browser playground
  18. 20:26Herb formatter plans
  19. 21:28Herb linter capabilities
  20. 22:30Vision for Reaction View
  21. 24:21Extending to other templating engines
  22. 25:44Short-term future of Herb
  23. 27:10Multi-file analysis and diagnostics
  24. 27:52Impact on Ruby tooling ecosystem
  25. 28:55Conclusion and call to action
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.