Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.43k stars 279 forks source link

Would we have a descending order? #846

Closed Candlest closed 1 year ago

Candlest commented 1 year ago

I use Tera in my blog. Now I need to order my posts by time, but the lastest post will at the bottom of the list. I try to use reverse = True like Jinja2, but it does not work. It seem that we can only sort an array into ascending order...... Must I implement it with javascript?

Keats commented 1 year ago

There is a reverse filter, is that not what you need?

Candlest commented 1 year ago

There is a reverse filter, is that not what you need?

Thanks I have tried Reverse but never tried reverse !!! My Bad 🤧