new ticket handler and move common variables
This commit is contained in:
16
handlers/common.go
Normal file
16
handlers/common.go
Normal 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
|
||||
Reference in New Issue
Block a user