Files
klice25/templates.go
2025-09-18 16:55:07 +02:00

28 lines
588 B
Go

package main
import (
"html/template"
)
type CipherTemplateS struct {
Order uint
Assignment template.HTML
HelpText string
FinalClue string
Coordinates string
Solution string
Help int
Wrong bool
}
type TeamTemplateS struct {
TeamName string
Difficulty string
LastCipher int
Penalties int
}
var CipherTemplate = template.Must(template.ParseFiles("templates/assignment.html"))
var TeamTemplate = template.Must(template.ParseFiles("templates/team.html"))
var AdminTeamsTemplate = template.Must(template.ParseFiles("templates/adminTeams.html"))