Hi there,

I'm quite new to Template, but I encountered a problem I don't understand?
----------------------
use Template;

my $test;
$test->{'vars'}->{'component'}->{'name'}='test';
$test->{'vars'}->{'dir'}->{'documentation'}='D:/temp';

my $str='[% dir.documentation %]/[% component.name %]';

my $tt = Template->new({ INTERPOLATE => 1, })|| die "ERROR!!\n";
my $retstr;
$tt->process(\$str, $test->{'vars'}, \$retstr)|| die "ERROR!!\n";

print $retstr;
------------------------------

What I expected  to get as $retstr:
D:/temp/test

What i really got as $retstr:
D:/temp/input text

What's wrong there? (ActivdePerl 5.8.4, Template 2.14)

Johannes


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to