Handlebars Helpers
File URL
Generates a direct file URL during Handlebars substitution. Useful for notifications, API payloads, documents, and external file access workflows.
NOTE
Use the File Link helper to return a full anchor tag with the file URL.
Uses
- Use to create a URL that points to a file in the file server
Usage
Helper name : file_url
eg.
{{#file_url [fileuuid]}}{{/file_url}}
Examples
Example definition with fileuuid string:
Substituted definition
Example definition with fileuuid from data:
Example definition with file object:
Where stub.data.my_file is an object containing a fileuuid property.
Example definition with array element:
Where stubpost.attachments is an array of file objects or fileuuids.