[Templates] TT2 bug: TTC file doesn't require Template::Iterator

Jonas Liljegren jonas@paranormal.se
Thu, 3 Aug 2000 17:02:27 +0200 (CEST)


I'm using perl 5.6.0 and Template 2.00-beta2

#!/usr/bin/perl
use Template;
$t = Template->new({COMPILE_EXT => '.ttc'});
$t->process('test.html') or die $t->error;
__END__

And here is test.html:
    [% FOREACH i = [2,3,4]; i; END %]

The first run creates the ttc file and the correct output.

The second run produce the error:

undef error - Can't locate object method "new" via package
"Template::Iterator" at ./test.html.ttc line 18.




Maby you could require Template::Iterator inside the ttc file?


-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html