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
20 stars 1 forks source link

Move datetime formatting into minijinja filter #51

Open kellpossible opened 7 months ago

kellpossible commented 7 months 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.