Skip to main content

chrome_page

Function chrome_page 

Source
pub fn chrome_page(
    doc: &str,
    site_title: &str,
    chrome: &Chrome,
    base_path: &str,
) -> String
Expand description

Wrap a rendered page document with the site chrome. doc is the full <!doctype html>...<body>content</body></html> document from seo::document; the body content is lifted into the layout (header + sidebar + main + TOC + pager) by exact-markup surgery on markup this crate itself emitted. base_path prefixes every site-relative URL the chrome emits (empty string = served at root).