메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 |
public Template ( string name, |
||
name | string | |
context | ||
templateResource | ||
scriptResource | ||
resourceCollection | ||
maxParallelism | int | |
리턴 | System |
public Transform ( object model ) : string | ||
model | object | The input view model |
리턴 | string |
public TransformModel ( object model ) : object | ||
model | object | The raw model |
리턴 | object |