really poor templ attempt
This commit is contained in:
@@ -2,16 +2,20 @@ package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/a-h/templ"
|
||||
"vctp/db"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"vctp/db"
|
||||
|
||||
"github.com/a-h/templ"
|
||||
)
|
||||
|
||||
// Handler handles requests.
|
||||
type Handler struct {
|
||||
Logger *slog.Logger
|
||||
Database db.Database
|
||||
Logger *slog.Logger
|
||||
Database db.Database
|
||||
BuildTime string
|
||||
SHA1Ver string
|
||||
GoVersion string
|
||||
}
|
||||
|
||||
func (h *Handler) html(ctx context.Context, w http.ResponseWriter, status int, t templ.Component) {
|
||||
|
Reference in New Issue
Block a user