I'm using TT2 and
ttree (no custom Perl save a few simple macros) to build a large static
website. I have a config template that I invoke for each template via the
pre_process directive in my ttree.cfg file. I now have some database code
in that file which is relatively expensive to execute, and the results don't
change from template to template. Is there some way to setup a template
which only runs once before all templates are processed? I've thought
about a two-step process involving a meta-template of sorts to generate the
template that has the global data, but it seems like there should be a better
way...
Thanks!
Dustin
