1. Handlebars Helpers
  2. File URL

Handlebars Helpers

File URL

Returns a file URL

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

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

eg. {{#file_url [fileuuid]}}{{/file_url}}

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.