renderToDocumentInScope function
Renders a full document reusing scope as the ambient query cache.
Implementation
String renderToDocumentInScope(
BloomNode body, {
required BloomQueryScope scope,
String lang = 'en',
String charset = 'UTF-8',
String? title,
List<BloomNode> head = const [],
String? importMapJson,
List<String> stylesheets = const [],
List<String> scripts = const [],
}) =>
BloomData.runWithScope(
scope,
() => renderToDocument(
body,
lang: lang,
charset: charset,
title: title,
head: head,
importMapJson: importMapJson,
stylesheets: stylesheets,
scripts: scripts,
),
);