On Fri, Sep 03, 2004 at 11:01:06AM +0200, Denis Banovic wrote:
> Hi all!
> 
> I'm using this simple error-checking sample to check if Template
> processing was OK.
> 
> $template->process($file, $vars) 
>       || die $template->error(), "\n";
> 
> But, if let's say result of the process is "" ( empty string ), than
> the script fails and dies with the $template->error();
> 
> Is there any other(simple and fast) way to check if Template->process
> was OK?

But the "process" method doesn't return the results of processing the
template (they are either printed to STDOUT or sent to the optional
third parameter). The "process" method only ever returns true or
false. True if the processing was succesful, false if it wasn't.

Dave...

-- 
  If there's something inside that you wanna say
  Say it out loud it'll be ok

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to