I really never use in a pure form. If you want to use the cach fetchure,
probably you will need to have a file path.
I'm using this code for using templates in runtime
##############################################################################
# Takes a template like a text string and preforms the transformation with
# the given data
##############################################################################
sub templateTextToText($$$)
{
my ($self, $data, $templateText) = @_;
my $tmpl = HTML::Template->new(scalarref => \$templateText,
option => 'value');
$self->testTemplateData($tmpl, $data);
$tmpl->param($data);
return $tmpl->output();
}
Marcos
> Hi All,
>
> I was wondering if anyone has stored the templates in a database before,
> instead of in files, and if it worked well.
>
> Thanks,
>
> Adam
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.488 / Virus Database: 287 - Release Date: 05/06/2003
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
--
Adira j� ao Net Dialup Light. Acesso profissional gratuito.
NovisNet, a Internet de quem trabalha. http://www.novisnet.pt
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users