htmltools::save_html() is deliberately not used: it cannot emit per-page <meta> tags,
and it copies the full dependency tree next to every single page. Each dependency is
copied once into <out_dir>/_mui/libs and referenced site-absolutely instead.
Usage
mui_render_page(
ui,
page,
out_dir,
config = mui_config(),
fallback = "",
home = FALSE
)Arguments
- ui
The page's tag tree.
- page
A page: its
outpath and itsurl, plus the front matter the<head>metadata is built from.- out_dir
Directory to write into.
- config
The site configuration; see
mui_read_config().- fallback
The page's content as plain HTML, written into the document ahead of the React tree and removed on mount - see
mui_prerender_html().""writes none.- home
Whether this page carries the bands the scroll spy watches; see
mui_boot_script().
See also
Other render:
mui_boot_script(),
mui_feed_xml(),
mui_prerender_html(),
mui_trim_payload()