kellpossible / avalanche-report

A simple self-hosted web server for creating and managing an avalanche forecast for a region, along with accepting public observations.
GNU Affero General Public License v3.0
22 stars 3 forks source link

Move datetime formatting into minijinja filter #51

Open kellpossible opened 1 year ago

kellpossible commented 1 year ago

Investigate whether serialized time values can be formatted by the utility filters in https://docs.rs/minijinja-contrib/latest/minijinja_contrib/filters/fn.dateformat.html this will be much cleaner than the current approach of having a formatted version of the data before passing to template as context.