The type of the template's params.
Creates a new root template.
The content of the template, or a function that returns the content.
The doctype tag to use for the template. Defaults to <!DOCTYPE html>
. Set to null
to disable.
The root tag to use for the template. Defaults to html
.
Readonly
contentThe content of the template, or a function that returns the content.
The doctype tag to use for the template. Defaults to <!DOCTYPE html>
. Set to null
to disable.
The root tag to use for the template. Defaults to html
.
Renders the template with the given params (if content
is a function).
The params to pass to the template.
The rendered template as a RawContent
instance.
Renders the template with the given params (if content
is a function).
The params to pass to the template.
The rendered template.
Generated using TypeDoc
A template that can be used to render the root HTML content. Automatically adds a doctype and root tag to the rendered content.