Dynamic content > Value formatters
Value Formatters are a set of functions that format a value based on its' context type and value into a presentable state.
You don’t have to do anything, these formatters are set by default. We want to explain the expected behaviour and its' options.
Here are a couple of examples:
{
'storage': [{
locale: null,
scope: null,
data: {
'unit': GIGABYTE,
'amount': 64.0000
}]
}
{{ normalize(``'storage', {'map': [GIGABYTE: GB]}``) }}
result: 64 GB
{{ normalize(``'storage', {'map': [GIGABYTE: GB], 'format': '%unit%%amount%'}``) }}
result: 64GB
{
'retail_price': [{
locale: null,
scope: null,
data: [{
'amount': 899.00,
'currency': EUR
}]
...
}
{{ normalize(``'storage', {'currency': EUR, 'map': [EUR: €]}``) }}
result: 899 €