package workout
templ WorkoutComp(currentDate string) {
}
type Workout struct {
Id string
Date string
Type string
Sets string
Reps string
}
templ WorkoutListComp(workouts []Workout) {
Workout history
| Date |
Type |
Sets |
Reps |
|
for _,w := range workouts {
@WorkoutItemComp(w, false)
}
}
templ WorkoutItemComp(w Workout, includePlaceholder bool) {
if includePlaceholder {
}
| { w.Date } |
{ w.Type } |
{ w.Sets } |
{ w.Reps } |
|
}