new ticket handler and move common variables

This commit is contained in:
2025-03-24 22:01:25 +00:00
parent b1518b0e09
commit 2eb04d6ffa
3 changed files with 79 additions and 22 deletions

16
handlers/common.go Normal file
View File

@@ -0,0 +1,16 @@
package handlers
import (
"html/template"
"synlotto-website/models"
)
var Tmpl = template.Must(template.ParseFiles(
"templates/layout.html",
"templates/index.html",
"templates/new_draw.html",
"templates/new_ticket.html",
))
var Draws []models.Draw
var MyTickets []models.MyTicket