Class SiteResponse<T>
Type Parameters
- T extends object = object
Index
Constructors
Properties
Methods
Constructors
constructor
- new SiteResponse<T extends object = object>(
pageConfig: T,
siteRequest: CSiteRequest,
settings: SiteResponseSettings,
): SiteResponse<T>Type Parameters
- T extends object = object
Parameters
- pageConfig: T
- siteRequest: CSiteRequest
- settings: SiteResponseSettings
Returns SiteResponse<T>
Properties
Protected
contents
contents: string = ""
Readonly
insertions
insertions: {
"body-bottom"?: Insertable[];
"body-devbottom"?: Insertable[];
"body-top"?: Insertable[];
"content-bottom"?: Insertable[];
"content-top"?: Insertable[];
"dependencies-bottom"?: Insertable[];
"dependencies-top"?: Insertable[];
}
"body-bottom"?: Insertable[];
"body-devbottom"?: Insertable[];
"body-top"?: Insertable[];
"content-bottom"?: Insertable[];
"content-top"?: Insertable[];
"dependencies-bottom"?: Insertable[];
"dependencies-top"?: Insertable[];
}
page Config
The pageConfig. Not protected because we assume that if you know it's type T, its on you if you access it
Readonly
render Inserts
renderInserts: (point: InsertPoints) => Promise<string>
settings
site Request
siteRequest: CSiteRequest
Methods
appendHTML
Append the specified text
Parameters
- text: string
Returns void
finish
Returns Promise<WebResponse>
get Supported Languages
Returns Record<string, boolean>
insert At
Insert a callback for use during rendering
Parameters
- where: InsertPoints
- what: Insertable
Returns void
SiteResponse implements HTML pages rendered using site configuration from WHFS and site profiles