package components import "html/template" var barTemplate = template.Must(template.New("bar").Parse("
")) type Bar struct { Id string Percentage float64 } templ System(icon string, infoPre string, infoPost string, extraInfo string, percentageId string, valueId string, percentage float64) {
{ extraInfo }
{ infoPre }{ infoPost }
@templ.FromGoHTML(barTemplate, Bar{Id:percentageId, Percentage:percentage})
}