package templates type RegistrationForm struct { Name string MAC string WoLBroadcastIP string WoLPort string ExpectedSpecYAML string Notes string Error string } templ Registration(form RegistrationForm) { @Layout("Register host") {

Register host

if form.Error != "" {
{ form.Error }
}
Cancel
} } func defaultPort(v string) string { if v == "" { return "9" } return v }