All, I have a set of templates, and each will be using a subset of variables for substitution. Due to the overhead of retrieving each of these values, I would like to know, or better yet, have the template parser tell me, what variables it will need to successfully process() the template. I could then retrieve them all at once, and process the template.
I know I could have my developers code a pre-process template that listed the vars, that I then populate the template with, but I was hoping not to have them have to do that. Too prone too errors. Alternatively, they could code the template to use a callback for each variable that needed to be supplied, but I want to get them all at once. What I was hoping for was something like compiling the template via a context object, then checking its Stash to see what variables it would need. But the objects in the Stash seem to bear little resemblance to the variable names I supplied in my template. Can anyone think of an easier way to do this ? Thanks Andy
