createPageModelFromTemplate

Function

Given a template, settings and transformation hashes, construct the new Page model. Altough this is async, it does not persist the page

Parameters

Parameter Type Default Notes
template Required IModelTemplate

Json Template of the Page

settings Required any

Hash of values to use in the interpolation

transforms Required any

Hash of transrormation functions available during interpolation

hubRequestOptions Required IHubRequestOptions

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in sites/src/pages/create-page-model-from-template.ts:20