Method | Description | |
---|---|---|
GetOptions ( object model ) : |
exports.getOptions = function (model) { return { bookmarks : { uid1: "bookmark1" }, isShared: true } }
|
|
Template ( string name, |
||
Transform ( object model ) : string |
Transform from view model to the final result using template Supported template languages are mustache and liquid
|
|
TransformModel ( object model ) : object |
Transform from raw model to view model TODO: refactor to merge model and attrs into one input model
|
Method | Description | |
---|---|---|
CreatePreprocessor ( |
||
CreateRenderer ( |
||
ExtractDependentResources ( string templateName ) : IEnumerable |
Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments {{! include('file') }} file path can be wrapped by quote ' or double quote " or none
|
|
GetRelativeResourceKey ( string templateName, string relativePath ) : string | ||
GetTemplateInfo ( string templateName ) : TemplateInfo |
public GetOptions ( object model ) : |
||
model | object | |
return |
public Template ( string name, |
||
name | string | |
context | ||
templateResource | ||
scriptResource | ||
resourceCollection | ||
maxParallelism | int | |
return | System |
public Transform ( object model ) : string | ||
model | object | The input view model |
return | string |
public TransformModel ( object model ) : object | ||
model | object | The raw model |
return | object |