On Tue, 16 Mar 2004, Randal L. Schwartz wrote:
> If you can put your nav information as [% META ... %],
That's what I was planning to do. Essentially I only need to "export"
the title and sequencenumber (the url follow from the filename itself) of
the slides. So the number of site.xxx variables would be small.
> 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.
Does this mean I need to write a perl-script that post-processes the
templates? Writing the script wouldn't be a problem in itself, but I'd
prefer to do this with just plain templates, because I intend to give
the template package to some people within our organisation that don't
have any knowlegde of perl whatsoever.
Grx HdV
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates