pub async fn export(
pool: &Pool,
name: &str,
with_pages: bool,
) -> Result<Value, StarterError>Expand description
The site’s look, and optionally its pages, as a theme.json value.
Page types are the UI-defined ones (those a theme can recreate);
colours are the site’s default theme; the error pages come along. With with_pages, the page
tree, its content and the menus come too, minus references to images
and other rows that only exist on this site.
§Errors
Database errors.