The type of the template's params.
The root tag selector string. Must be a non-void HTML tag.
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
.
The attributes to set on the root tag. Defaults to {lang: 'en'}
if the root tag is 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 attributes to set on the root tag. Defaults to {lang: 'en'}
if the root tag is html
.
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.