Fluid: inline notation with a value

July 15, 2016 at 07:21

What I needed was the inline notation for f:format.currency. Usually it looks like this:
<f:format.currency currencySign="€" decimalSeparator="," thousandsSeparator="." prependCurrency="false" decimals="2">{somevar}</f:format.currency>
I needed this in an attribute and therefore needed the inline notation. The solution:
{somevar -> f:format.currency(currencySign:'€',decimalSeparator:',',thousandsSeparator:'.',prependCurrency:'false', decimals:2)}
A link to the solution

Tags: fluid

Hinterlasse einen Kommentar: