Class RenderPipeline

java.lang.Object
dev.jcputney.mjml.render.RenderPipeline

public final class RenderPipeline extends Object
Orchestrates the 7-phase rendering pipeline:
  1. Preprocess (handled by MjmlParser)
  2. Parse (handled by MjmlParser)
  3. Resolve includes (expand mj-include)
  4. Process head (extract fonts, styles, attributes, etc.)
  5. Resolve attributes (cascade applied during rendering)
  6. Render body (top-down component rendering)
  7. Assemble skeleton + CSS inlining
  • Constructor Details

  • Method Details

    • render

      public MjmlRenderResult render(String mjmlSource)
      Renders MJML source to a complete HTML document.
      Parameters:
      mjmlSource - the raw MJML markup to render
      Returns:
      the render result containing the HTML output, title, and preview text