[prev] [thread] [next] [Date index for 2004/09/03]
Sorry, my fault! Thanks Dave! Denis -----Urspr=FCngliche Nachricht----- Von: Dave Cross [mailto:dave@xxxx.xxx.xx]=20 Gesendet: Freitag, 3. September 2004 11:06 An: Denis Banovic Cc: templates@xxxxxxxxxxxxxxxx.xxx Betreff: Re: [Templates] Simple Error Question On Fri, Sep 03, 2004 at 11:01:06AM +0200, Denis Banovic wrote: > Hi all! >=20 > I'm using this simple error-checking sample to check if Template > processing was OK. >=20 > $template->process($file, $vars)=20 > || die $template->error(), "\n"; >=20 > But, if let's say result of the process is "" ( empty string ), than > the script fails and dies with the $template->error(); >=20 > 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... --=20 If there's something inside that you wanna say Say it out loud it'll be ok _______________________________________________ templates mailing list templates@xxxxxxxxxxxxxxxx.xxx http://lists.template-toolkit.org/mailman/listinfo/templates _______________________________________________ templates mailing list templates@xxxxxxxxxxxxxxxx.xxx http://lists.template-toolkit.org/mailman/listinfo/templates
|
AW: [Templates] Simple Error Question
|
Generated at 08:56 on 15 Mar 2005 by mariachi v0.52