Hello Toolkit Users
I am only starting to use template-toolkit and reading the available info I
cannot run the examples. There is always the error site1.tt not found;
Maybe you can have a quick look what I am doing wrong here :
my dir structure
site1 --> perl script
site1/src --> main template site.tt
site1/dest --> expected output dir
site1/lib --> templates header.tt, footer.tt
my perl script
my $template = Template->new({
PRE_PROCESS => 'header.tt',
POST_PROCESS => 'footer.tt',
INCLUDE_PATH => [
'/site1/src', # src
'/site1/lib', # lib
],
});
my $vars = {
title => "This is the title",
description => "This is the description",
keywords => "These are the keywords",
robots => "These are the robots"
};
$template->process('site.tt', $vars)
|| die "Template process failed: ", $template->error(), "\n";
thanks for assistance
best regards, Peter
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates