feat: wire scraped schedule into handler with caching and week nav

This commit is contained in:
2026-05-27 10:56:37 +02:00
parent c044ebdda0
commit 5dd6eedc3f
4 changed files with 279 additions and 53 deletions

View File

@@ -7,6 +7,7 @@ import (
"io"
"io/fs"
"net/http"
"net/url"
"path"
"github.com/gin-gonic/gin"
@@ -26,6 +27,7 @@ var Module = fx.Options(
func ProvideRenderer() (*Renderer, error) {
funcs := template.FuncMap{
"dict": dict,
"list": func(items ...string) []string { return items },
"json": jsonAttr,
"genresParams": genresParams,
"hasGenre": hasGenre,
@@ -43,6 +45,7 @@ func ProvideRenderer() (*Renderer, error) {
"int": toInt,
"percent": percent,
"formatDate": formatDate,
"urlquery": url.QueryEscape,
}
pages, err := fs.Glob(templateFS, "*.gohtml")