>>>>> "JV" == Jeff Vendetti <Vendetti> writes:

JV> Can anyone furnish the exact process of pre-compiling templates.
JV> Do I use Template::Provider?

I'm assuming you mean that you have a template that you wish to
process many times just changing the variable values passed in, and it
is not in a file that can be compiled to disk.  To accomplish this, do
something along these lines:

$tt is your Template object.
$template is a string containing your template.

my $ct = $tt->context()->template(\$template);

$tt->process($ct,{ var1 => val1, var2 => val2 });

you can call $tt->process as often as you like, changing the variables
passed in, and you don't have to spend the time to parse and compile
the template each time.

If that wasn't your question, you need to phrase it more clearly.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/


Reply via email to