There is an even simpler approach, as the timespan name is available in the context attribute:
#for $timespan in ($day(data_binding='my_binding'),$week(data_binding='my_binding'),...) <p class="hilo_$timespan.context">$getattr($timespan,'myobs').max</p> #end for -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/88e622a5-0000-4ab7-beb9-329f7a1a72bbn%40googlegroups.com.