Formatters

All existing formatters by input data type

Formatters translate raw data into human readable text.

To apply a formatter to data, use the separator :. Multiple formatters can be used one after another. Each formatter input is the output of the previous one. Some formatters accept static or Dynamic parameters.

The example below shows how to write "John" instead of "JOHN" using 2 chained formatters, and how to translate a raw ISO date into a human readable date.

Data

{
  "name"     : "JOHN",
  "birthday" : "2000-01-31"
}

My name is {d.name:lowerCase:ucFirst}.

I was born on {d.birthday:convDate(YYYY-MM-DD, LL)}.

Last updated