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

Twig number_format #166

Open
pbatts opened this issue Oct 13, 2021 · 0 comments
Open

Twig number_format #166

pbatts opened this issue Oct 13, 2021 · 0 comments

Comments

@pbatts
Copy link

pbatts commented Oct 13, 2021

The number_format filter was added in Twig 1.5.

Is there a way to add the number_format filter to Stacey (Twig 1.4)?

I am dynamically adding two (currency) values within a template, the display does not default to two decimals. For example, 1.40 displays as 1.4 without the trailing zero.

Or perhaps there is an easier way.

Thanks

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

1 participant