kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 131 forks source link

Twig Math in Stacey and Trailing Zero #167

Open pbatts opened 2 years ago

pbatts commented 2 years ago

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?

Sija commented 2 years ago

Stacey is not maintained anymore.

pbatts commented 2 years ago

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?

Sija commented 2 years ago

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

06nH commented 2 years ago

@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?

Sija commented 2 years ago

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