Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using liquid syntax inside of tempaltes #19

Open
Franklin89 opened this issue Jul 2, 2018 · 3 comments
Open

Using liquid syntax inside of tempaltes #19

Franklin89 opened this issue Jul 2, 2018 · 3 comments

Comments

@Franklin89
Copy link

Franklin89 commented Jul 2, 2018

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
Copy link
Owner

oldrev commented Jul 4, 2018

Hello

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

default

@Franklin89
Copy link
Author

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

@Franklin89
Copy link
Author

Franklin89 commented Jul 22, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants