1. Handlebars Helpers
  2. File Link

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

Parameter Description
1 The fileuuid or file object (with fileuuid property) to link to

eg. {{#file_link [fileuuid]}}{anchor text}{{/file_link}}

Examples

Example definition with fileuuid string:

loading...

Substituted definition

loading...

Example definition with fileuuid from data:

loading...

Example definition with file object:

loading...

Where stub.data.my_file is an object containing a fileuuid property.

Example definition with array element:

loading...

Where stubpost.attachments is an array of file objects or fileuuids.