maltreport icon indicating copy to clipboard operation
maltreport copied to clipboard

Using liquid syntax inside of tempaltes

Open Franklin89 opened this issue 7 years ago • 3 comments
trafficstars

Would it be possible to use liquid syntax inside of the template?

For example for rounding numbers or similar things.

(Example showing what I mean, see last column of the table) image

Franklin89 avatar Jul 02 '18 12:07 Franklin89

Hello

The short answer is yes. Please try the beta version for using liquid syntax.

default

oldrev avatar Jul 04 '18 07:07 oldrev

Thanks for getting back. Okay i will check it out next week after my holidays 😁

Franklin89 avatar Jul 06 '18 16:07 Franklin89

@oldrev -> So I tried out tests in the dev branch. It renders the decimal and doubles correctly. But the issue that I am still facing is that I would like to round the number to 2 decimal places for example for displaying a currency.

Am I doing something wrong?

Tried the following which results in an error while parsing the templates:

image

Franklin89 avatar Jul 22 '18 08:07 Franklin89