[Templates] Newbie: problem with process ...
[prev]
[thread]
[next]
[Date index for 2004/11/12]
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
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Newbie: problem with process ...
Johannes Kilian 08:42 on 12 Nov 2004
|