package workout templ WorkoutComp(currentDate string) {

Track your workout

} type Workout struct { Id string Date string Type string Sets string Reps string } templ WorkoutListComp(workouts []Workout) {

Workout history

for _,w := range workouts { @WorkoutItemComp(w, false) }
Date Type Sets Reps
} templ WorkoutItemComp(w Workout, includePlaceholder bool) { if includePlaceholder { } { w.Date } { w.Type } { w.Sets } { w.Reps }
}