> my $context = $template->context();
> my $compiled;
> eval {
>       $compiled = $context->template('filename');
>   };
>   if ($@) {   # Bad Template!  }
>   else {
>       # Good Template!
>       $template->process($compiled);
>   }
>

It worked. Thanks !

(I store tmpl's in a DB, and want to
write them on disc only if they seems to be correct)



Reply via email to