oldrev / maltreport

A WYSIWYG document template engine to generates .odt/.ods/docx/xlsx/doc/xls documents for .NET
MIT License
126 stars 27 forks source link

Using liquid syntax inside of tempaltes #19

Open Franklin89 opened 6 years ago

Franklin89 commented 6 years ago

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

oldrev commented 6 years ago

Hello

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

default

Franklin89 commented 6 years ago

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

Franklin89 commented 6 years ago

@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