A Ruby gem that inlines CSS styles and rewrites relative URLs in HTML emails for better client compatibility.
Roadie is a Ruby gem that processes HTML emails by inlining CSS styles directly into HTML elements and rewriting relative URLs to absolute ones. It solves the problem of inconsistent CSS support across email clients, allowing developers to write maintainable stylesheets while ensuring emails render correctly.
Ruby developers and teams building HTML email templates for newsletters, transactional emails, or marketing campaigns who need reliable styling across diverse email clients.
Roadie automates the tedious and error-prone process of manually inlining CSS and fixing URLs, saving development time and reducing email rendering issues. Its flexible provider system and configurability make it adaptable to various project workflows.
Making HTML emails comfortable for the Ruby rockstars
Inlines CSS while respecting selector specificity and !important rules, ensuring styles apply correctly across email clients as described in the README.
Rewrites relative URLs to absolute ones based on customizable host and protocol settings, with per-element control via data-roadie-ignore attributes.
Supports loading stylesheets from filesystems, networks, or custom sources through a provider system, allowing integration with various asset pipelines.
Handles both full HTML documents and fragments, automatically adding or omitting the HTML skeleton as needed for different use cases.
The project is in passive maintenance, meaning fewer updates and slower responses to bugs or evolving email client standards, as noted in the README.
Relies on Nokogiri for HTML parsing, which can alter markup (e.g., handling of or lack of HTML5 support) and may cause stability issues like segmentation faults.
Uninlinable CSS such as :hover selectors is preserved but often requires manual !important declarations to overcome specificity conflicts, adding complexity.
📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
Preview mail in the browser instead of sending.
A Really Ruby Mail Library
CSS styled emails without the hassle.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.