The Wire · Showcase
Rail's ERB Gets an HTML-Aware Overhaul
By RepoJournal · Filed · About Rails
A new HTML-aware ERB engine is landing in Rails, and it could change how you write templates.
The big news is the proposed Herb engine [1], which parses HTML and ERB into a single syntax tree, using Prism for the Ruby parts, promising a more semantic understanding of your templates. Jean Boussier is also shipping fixes across the stack: a RedisCacheStore bug with redis-client that broke clear and stats [2], a PostgreSQL exclusion constraint parsing fix for multiline expressions [3], and in Sprockets, a fix so the "ignore_mtime" option is properly inherited between environments [4], all culminating in the 4.4.1 release [5]. These are the maintenance touches that keep production humming, and Herb is the one to watch for the future.
One email a day. Unsubscribe in one click.
Keep up with Rails in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review the Herb pull request and test it against your ERB templates rails/rails [plan]
- → Upgrade sprockets to 4.4.1 to get the ignore_mtime inheritance fix rails/sprockets [immediate]
- → Verify your RedisCacheStore clear/stats methods work with redis-client after the fix rails/rails [monitor]
References
- [1] Add Herb as an HTML-aware ERB implementation ↗ rails/rails
- [2] Fix RedisCacheStore clear and stats with redis-client rails/rails
- [3] Fix PostgreSQL multiline exclusion constraints rails/rails
- [4] Fix `ignore_mtime` option to be inherited between environments rails/sprockets
- [5] Release 4.4.1 rails/sprockets