html function

Markup html(
  1. Markup children, {
  2. Attributes attrs = const {},
})

Wraps the given children in an HTML doctype and <html> tag with optional attrs.

Implementation

Markup html(
  Markup children, {
  Attributes attrs = const {},
}) =>
    [
      '<!DOCTYPE html>'.$,
      'html'(attrs: attrs, children),
    ];