Skip to main content

apply_theme_full_document

Function apply_theme_full_document 

Source
pub fn apply_theme_full_document(
    html: &str,
    theme: &Theme,
    title: &str,
    inline: bool,
) -> Result<String>
Expand description

Apply theme and wrap in full HTML document (for preview pages).

Unlike apply_theme, this produces a complete <!DOCTYPE html> document with CSS in <head> only — no duplicate <style> in <body>.

Note: No wrapper div is added. Theme CSS uses direct element selectors.