package pkg import "strings" templ basicTemplate() { PLG MuDiCS Display { children... } } templ videoTemplate(path string) { @basicTemplate() { } } templ htmlTemplate(html string) { @basicTemplate() { @templ.Raw(html) } } templ imageTemplate(path string) { @basicTemplate() { } } templ deviceInfoTemplate(ip string, mac string, showQR bool) { @basicTemplate() {
{ ip } { mac }
if showQR {
QR-Code
}
} } templ pdfTemplate(path string, serverOrigin string) { @basicTemplate() {
} } templ startScreenTemplate(splashScreenHtml string, ip string, mac string, qrPath string) { @basicTemplate() {
{ ip } { mac }
if qrPath != "" {
QR-Code
}
@templ.Raw(splashScreenHtml) } }