Class HtmlSkeleton

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

public final class HtmlSkeleton extends Object
Generates the complete HTML document skeleton wrapping the rendered body. Includes DOCTYPE, html/head/body tags, CSS resets, font imports, MSO XML settings, media queries, and preview text.
  • Method Details

    • assemble

      public static String assemble(String bodyContent, GlobalContext ctx)
      Assembles the full HTML document from the rendered body content.
      Parameters:
      bodyContent - the rendered HTML body content to embed in the document
      ctx - the global context providing configuration, styles, and metadata
      Returns:
      the complete HTML document string