...
Tip | ||
---|---|---|
| ||
To display the |
For more advanced formatting you will need Handlebar Helpers.
Handlebar Template Helpers
Handlebar Helpers can be used to apply advanced formatting to data outputs. Starting from conditionals to simple calculations.
All built-in Handlebar Helpers can be used.
Helpers are used in the following format:{{helper_name <required_parameters> [optional_parameters]}}
date
Format a given time and date.
{{date <date> [format]}}
date
must be a valid input for moment(). When using timestamps it must be in milliseconds.format
must be a valid moment.format() string.
Example
Template:
Code Block |
---|
{{date data.time}} |
Data:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "data": { "time": 1585823609000 } } |
Output:
Code Block |
---|
02.04.2020 10:33:29 |
...