I am trying to get
my first template up and I keep getting a "Template::Exception at
C:/Perl/lib/CGI/Carp.pm line 301." error.
I am using the TT2
tutorial as my guide. And yes I have read all the docs, and yes I have probably
missed something in the docs.
I have a hashed hash
I am trying to output.
--> partial code
<--
my $tt =
Template->new({
INCLUDE_PATH => 'C:\\apache\\htdocs\\eaglevision\\templates',
INTERPOLATE => 1,
}) || die "$Template::ERROR ";
INCLUDE_PATH => 'C:\\apache\\htdocs\\eaglevision\\templates',
INTERPOLATE => 1,
}) || die "$Template::ERROR ";
my %data =""
name => 'Eagle
Vision',
ibos => \%ibos );
# display data
$tt->process('vision/ibo.tpl', \%data)
|| die $tt->error();
ibos => \%ibos );
# display data
$tt->process('vision/ibo.tpl', \%data)
|| die $tt->error();
--> end
<--
--> template file
<--
Name - [% name
%]
[% FOREACH ibo =
ibos %]
[% ibo.IBONumber %] [% ibo.UplineIBONumber %] [% ibo.IBOActive %] [% ibo.IBOPin %] [% ibo.FirstName %] [% ibo.MI %] [% ibo.LastName %] [% ibo.SpouseType %] [% ibo.CreateDate %] [% ibo.ModifyDate %] [% ibo.ModifiedBy
[% END %]
[% ibo.IBONumber %] [% ibo.UplineIBONumber %] [% ibo.IBOActive %] [% ibo.IBOPin %] [% ibo.FirstName %] [% ibo.MI %] [% ibo.LastName %] [% ibo.SpouseType %] [% ibo.CreateDate %] [% ibo.ModifyDate %] [% ibo.ModifiedBy
[% END %]
--> end
<--
When I pound out the
template code, the script runs fine.
Tim
