renderPageWithOptions function

String renderPageWithOptions(
  1. PageOptions options
)

Renders a page using PageOptions configuration.

This is an alternative to renderPage that uses a configuration object for more complex page setups.

Implementation

String renderPageWithOptions(PageOptions options) {
  return renderPage(
    title: options.title,
    content: options.content,
    scriptName: options.scriptName,
    additionalScripts: options.additionalScripts,
    stylesheets: options.stylesheets,
    inlineStyles: options.inlineStyles,
    headContent: options.headContent,
    lang: options.lang,
    metaTags: options.metaTags,
    nonce: options.nonce,
  );
}