I have figured out a way, but it is rather byzantine by my lights. Basically to extract meta data from a template, you PROCESS the template, but with a special flag set. Each article template is responsible for reading the flag, and if it is set, instead of generating a page as usual, it sets global variables with the contents of the template's META items. Every article template has the same META items.
I came up with two MACROs to automate this and make it maintainable. I have to add one line to each article template to invoke a macro which embodies the conditional processing to expose the META data. I execute a second macro from the other template with name of the template I want to get the META data out of as a parameter, and then the META data is found in global variables. If there is a new standard META item I only have to add a line to my macro to expose it on demand.
Anyway, I am wondering if there is some obvious simple way to do this that's better than what I've done. Thanks in advance for any advice.
=Steve Dunn=
The possibilities are infinitely | CancerGuide: http://cancerguide.org greater than the averages. | "When you need the right questions"
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
