Jason Galea wrote: > my $template = Template->new({ > INCLUDE_PATH => [ '/home/usr/html', > '/usr/local/html' ], > });
One extra thing worth pointing out is that you can change the values in the INCLUDE_PATH between calls to process() and TT will Do The Right Thing. For example: my @paths = qw( /home/abw/templates /usr/local/templates ); my $tt = Template->new( INCLUDE_PATH => [EMAIL PROTECTED] ); foreach $user (@users) { $paths->[0] = "/home/$user/templates"; $tt->process($file, $vars); } A _______________________________________________ templates mailing list templates@template-toolkit.org http://lists.template-toolkit.org/mailman/listinfo/templates