new Attachment_Controller(attachments)
Parameters:
Name | Type | Description |
---|---|---|
attachments |
Object | Attachments object with files to be used in rivescript - template |
- Source:
Methods
getAttachment(name) → {Object}
Gets the attachment object by a given name
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the attachment |
- Source:
Returns:
An attachment object
- Type
- Object
getAttachmentUrl(url) → {Object}
Replaces the $assets_url and get the attachment url configured with correct path
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The attachment url |
- Source:
Returns:
An attachment object
- Type
- Object