Constructor
new HTML_ADAPTER(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Configurable options for HTML adapter Properties
|
- Source:
Extends
- JSON_Adapter
Methods
error(err, optionsopt, cb) → {Object}
Renders error view from template
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
err |
* | Any error data that should be passed to template |
|||||||||||||||||||||||||||
options |
Object |
<optional> |
{} | Configurable options for rendering see _ERROR for full details Properties
|
|||||||||||||||||||||||||
cb |
function | Optional callback function. If arugment is not passed function will |
- Source:
Returns:
Returns a Promise if cb arguement is not provided
- Type
- Object
render(data, optionsopt, cb) → {Object}
Renders HTML from provided data and template
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | Data that is passed to render template |
|||||||||||||||||||||||||||
options |
Object |
<optional> |
{} | Configurable options for rendering see _RENDER for full details Properties
|
|||||||||||||||||||||||||
cb |
function | Optional callback function. If arugment is not passed function will |
- Source:
Returns:
Returns a Promise if cb arguement is not provided
- Type
- Object