Helpers are functions that let you perform basic text transformation within your template.


Formats the timestamp in a given field using a date format. Uses helper-date.

The field value must be a Unix timestamp or any of the formats supported by date.js.

<!-- Time: 1598791377556 -->
{{date Time "YYYY-MM-DD"}}
<!-- results in: '2020-08-30' -->


Compares two strings for equality.

<!-- app: foo -->
{{#if (eq app "foo")}}
<!-- results in: 'Success!' -->


Join all elements of array into a string using a given separator.

<!-- array: ['a', 'b', 'c'] -->
{{join array "-"}}
<!-- results in: 'a-b-c' -->


Checks if given value exists within an array

<!-- array: ['a', 'b', 'c'] -->
{{#if (contains array "a")}}
<!-- results in: 'Success!' -->


Formats the given number using fixed-point notation.

<!-- Value: 1.1234 -->
{{toFixed Value 2}}
<!-- results in: '1.12' -->


Returns a string array of the currently selected values for a certain variable.

{{variable "hostname"}}
<!-- results in: ['server1', 'server2', 'server3'] -->