Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Formats are handlebar templates. See: "Format Template" below.


Format Templates

Formatting values in HTML or CSS output is done via Handlebar Templates. Please also have a look into the Handlebar Documentation.


Note

You can not use HTML directly for security reasons. There is a checkbox Is HTML to skip the escaping. We do not recommend using it and it might get removed in future versions.


The underling data structure can be seen when expanding the table:

Image Modified


Parser output is saved in the data field. But you can also render all other fields. To replace part of the template with variable data you need to put the variable in double curly brackets: e.g. {{variable}}


Tip
titleExample

To display the temperature field of the parser output you can simply write {{data.temperature}}.


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]}}

Example

Template:

Code Block
{{date data.time}}


Data:

Code Block
{
  "data": {
    "time": 1585823609000
  }
}


Output:

Code Block
02.04.2020 10:33:29