package handlers import ( "log/slog" "net/http" "git.mihna123.com/openstore/internal/config" ) type Page struct { Lang string Instance config.Instance Data any } func (h *Handler) home(w http.ResponseWriter, r *http.Request) { page := Page{Lang: "en", Instance: h.cfg.Instance} err := h.tmpl.ExecuteTemplate(w, "index.html", page) if err != nil { slog.Error("render template", "err", err.Error()) return } }