stacey icon indicating copy to clipboard operation
stacey copied to clipboard

Twig Math in Stacey and Trailing Zero

Open pbatts opened this issue 2 years ago • 5 comments

The Twig filter number_format was added in Twig v1.5. Alas, we are stuck with v1.4.

{{ 3.00 + 0.40 }} returns 3.4

Is there a way to handle this and not lose the trailing zero?

pbatts avatar Oct 18 '22 13:10 pbatts

Stacey is not maintained anymore.

Sija avatar Oct 18 '22 14:10 Sija

LOL

Well, some of us refuse to give up. The community is maintaining it the best we can. See https://github.com/kolber/stacey/issues/131

So, do you have a solution?

pbatts avatar Oct 18 '22 14:10 pbatts

@pbatts Perhaps open an issue in the maintained fork instead and not in here - in a dead repo?

Sija avatar Oct 18 '22 14:10 Sija

@pbatts Perhaps open an issue in the maintained fork instead and not in here - in a dead repo?

If you don't mind me asking—could you point me to the maintained fork?

06nH avatar Oct 24 '22 08:10 06nH

@06nH The newest I've found is this one - https://github.com/olekristensen/stacey

Sija avatar Oct 24 '22 09:10 Sija