Wow, you guys are giving a lot of ideas there, thanks so much! First to supply info:
-I have only one tag usage presently, in the index.html.tmpl file.
-the cost comes from DB queries, for which I wanted the db_lookup class, which is passed to get_extension_list.
-I am creating the TimespanBinder, to cover a rainstorm period. Thereby allowing various stats over the storm period, obviously $last_rain_storm.rain.sum, but could be other interesting things like $last_rain_storm.outTemp.max, etc. So I followed the example in setting the calculated TimespanBinder into a variable which is added to the dictionary returned by get_extension_list.
Some clarifying questions:
-I didn't understand __init__, so that looks useful, but how can I obtain the db_lookup method there?
-mentioning "once per tag" or do code when tag is used, what is the technique to detect or run on tag usage, to calculate the TimespanBinder?
I can also fall back to saving the complex results in a temp DB and reusing without recalculating.
Thanks! Rich