Author: Michael Lynch <git@mtlynch.io>
Committer: Michael Lynch <mtlynch@noreply.codeberg.org>
Add renderTemplate wrapper to eliminate ExecuteTemplate boilerplate (#201) Every page handler repeated the same render-then-handle-error block after building its template data. Extract it into a single renderTemplate helper in templates.go and route all 7 call sites through it. The helper renders into a buffer first, so a mid-render failure becomes a clean 500 instead of a partially written response. renderLogin's status parameter was always http.StatusOK, so drop it and route renderLogin through the same wrapper, leaving no special cases. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/201
| Time to Start | Worker time | Duration | Time to finish | Idle | |
| Config | 1s | 5s | 5s | 6s | 1s |
| Eval | 5s | 34s | 34s | 39s | 0s |
| Build | 10s | 1m22s | 15s | 26s | 0s |
| Suite | 1s | 2m01s | 37s | 39s | 1s |