>>>>> "HdV" == HdV <[EMAIL PROTECTED]> writes:
HdV> Hi,
HdV> I am building a system that generates (HTML) presentation slides from
HdV> templates. Navigation is built upon a small javascript that is
HdV> automatically generated from those same templates. My intent is to have
HdV> each template/slide set some site-wide variables and have the javascript
HdV> created using those variables after all slides have been processed. That
HdV> means I must have something equivalent to --post_process that is called
HdV> not after each template has been processed, but after all templates have
HdV> been processed. Is there such a thing? Or perhaps another mechanism to
HdV> have a file created (with access to site-wide variables) after all
HdV> templates have been processed?
HdV> Your advice would be appreciated.
If you can put your nav information as [% META ... %], then you
can get at that data programatically via:
use Template;
my $c = Template->new({ qw(RELATIVE 1 ABSOLUTE 1) });
for (@ARGV) { # filenames in @ARGV
my $d = $c->template($_);
my $one = $d->one; # gets the [% META one = ... %] var
my $two = $d->two; # gets the [% META two = ... %] var
}
and so on.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates