diff --git a/src/module/helpers/content.rs b/src/module/helpers/content.rs index 4479a39e..08711368 100644 --- a/src/module/helpers/content.rs +++ b/src/module/helpers/content.rs @@ -79,6 +79,19 @@ pub mod markdown { .unwrap_or("UTF8Error")) } + pub fn to_html_page(self) -> String { + let header = " + + + + + + "; + let content = self.to_html(); + let footer = ""; + format!("{}{}{}", header, content, footer) + } + } }