Handlebars Helpers
File Link
Returns a file link
NOTE
Use the File URL helper to return just the URL without the anchor tag.
Uses
- Use to create a link that points to a file in the file server
Usage
Helper name : file_link
eg.
{{#file_link [fileuuid]}}{anchor text}{{/file_link}}
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.