With HTML::Template, you either use included files for
the common elements with TMPL_INCLUDE, or you make the
date range a TMPL_VAR.
I agree, though, that taking a good hard look at what
you're trying to accomplish and then picking a
tool makes a lot more sense than doing it the other way around.