[Templates] Newbie: problem with process ...

[prev] [thread] [next] [Date index for 2004/11/12]

From: Johannes Kilian
Subject: [Templates] Newbie: problem with process ...
Date: 08:42 on 12 Nov 2004
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

Re: [Templates] Newbie: problem with process ...
Harald Joerg 09:05 on 12 Nov 2004

Re: [Templates] Newbie: problem with process ...
Johannes Kilian 11:17 on 12 Nov 2004

Re: [Templates] Newbie: problem with process ...
Andy Wardley 09:09 on 12 Nov 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52