Function
Static Public Summary | ||
public |
arrayContainsItem(array: object, value: object, options: object): string Does an array contain a value? |
|
public |
capSplitAndJoin(joiner: string, options: object): string Split a string by capital letters and then re-join by another. |
|
public |
Compare two values with a predicate to determine some equivelence relation. |
|
public |
generateTask(taskOptions: *): * Generate a new instance of the task with the specified options. |
|
public |
lowercaseBlock(options: object): string Convert a block to lowercase |
|
public |
lowercaseFirstLetter(options: object): string Drop-case the first letter of a string |
|
public |
Extract the name of a property with a handlebars-unfriendly name, such as hyphenated names. |
|
public |
uppercaseBlock(options: object): string Convert a block to uppercase |
|
public |
uppercaseFirstLetter(options: object): string Capitalize the first letter of a string |
|
public |
withContext(variable: object, options: object): string Sub-context creation for a specific variable. |
|
public |
withDefinition(property: object, definitionMap: object, options: object): string Process the primary block if the specified property has a schema/$ref linkage, and the inverse block if not. |
Static Public
public arrayContainsItem(array: object, value: object, options: object): string source
Does an array contain a value?
public capSplitAndJoin(joiner: string, options: object): string source
Split a string by capital letters and then re-join by another.
public compareValues(lvalue: object, operator: object, rvalue: object, options: object): string source
Compare two values with a predicate to determine some equivelence relation.
public generateTask(taskOptions: *): * source
Generate a new instance of the task with the specified options.
Params:
Name | Type | Attribute | Description |
taskOptions | * | Task options for the plugin. |
Return:
* | Streaming task for processing objects. |
public lowercaseBlock(options: object): string source
Convert a block to lowercase
Params:
Name | Type | Attribute | Description |
options | object | Handlebars options. |
public lowercaseFirstLetter(options: object): string source
Drop-case the first letter of a string
Params:
Name | Type | Attribute | Description |
options | object | Handlebars options. |
public propertyValueExtract(context: object, name: string, propName: string, options: object): string source
Extract the name of a property with a handlebars-unfriendly name, such as hyphenated names. Sets the property called name into context.propName if it exists and excutes the first block with context value.
Executes inverse block otherwise.
public uppercaseBlock(options: object): string source
Convert a block to uppercase
Params:
Name | Type | Attribute | Description |
options | object | Handlebars options. |
public uppercaseFirstLetter(options: object): string source
Capitalize the first letter of a string
Params:
Name | Type | Attribute | Description |
options | object | Handlebars options. |
public withContext(variable: object, options: object): string source
Sub-context creation for a specific variable.