But TT's process method takes a file name as argument, not a
string. Do I have to understand how to subclass
Template::Provider, Template::Document, and Template::Parser if I
want to get this to work?
the process method takes a file name, string ref, or GLOB..
http://search.cpan.org/~abw/Template-Toolkit-2.13/lib/Template.pm#process($template,_\%vars,_$output,_%options)
$text = "[% INCLUDE header %]\nHello world!\n[% INCLUDE footer %]";
# filename
$tt->process('welcome.tt2')
|| die $tt->error(), "\n";
# text reference
$tt->process(\$text)
|| die $tt->error(), "\n";
# GLOB
$tt->process(\*DATA)
|| die $tt->error(), "\n";
__END__
[% INCLUDE header %]
This is a template defined in the __END__ section which is
accessible via the DATA "file handle".
[% INCLUDE footer %]
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates