Skip to main content

Crate ferrum_email_core

Crate ferrum_email_core 

Source
Expand description

§ferrum-email-core

The foundation of the Ferrum Email framework. This crate defines the core abstractions:

  • Component trait — the building block for all email templates
  • Node tree — the intermediate representation between components and rendered HTML
  • Style system — type-safe CSS properties for email-safe styling
  • Primitive types — Px, Color, Spacing, FontWeight, etc.

All other Ferrum Email crates depend on this one. If you’re building custom components or extending the framework, this is your entry point.

§Architecture

Component::render() → Node tree → Renderer → HTML + Plain Text

Components produce Node trees. The Node tree is a virtual DOM-like intermediate representation that the renderer walks to produce email-safe HTML.

Re-exports§

pub use color::Color;
pub use component::Component;
pub use node::Attr;
pub use node::Element;
pub use node::Node;
pub use node::Tag;
pub use spacing::Spacing;
pub use style::Border;
pub use style::Style;
pub use types::*;

Modules§

color
Color type for the Ferrum Email framework.
component
The Component trait — the core abstraction of Ferrum Email.
node
The Node tree — an intermediate representation for email content.
spacing
Spacing type for padding and margin values.
style
Typed CSS style system for email-safe styling.
types
Primitive types used throughout the Ferrum Email framework.