Re: [Templates] Pass page template data structure to library template?

[prev] [thread] [next] [Date index for 2005/01/14]

From: Andy Wardley
Subject: Re: [Templates] Pass page template data structure to library template?
Date: 18:42 on 14 Jan 2005
Randal L. Schwartz wrote:
> Well, I like to wrap my PROCESS $template in a TRY block, so that
> won't work very well.

It will if you add the ERROR option.  This can be used to define a 
template or subroutine to be invoked when the main PROCESS/WRAPPER
fails.  You can also define it as a hash mapping error types to 
templates/handlers, effectively the same thing as having multiple
CATCH blocks.

A


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Pass page template data structure to library template?
merlyn (Randal L. Schwartz) 23:28 on 13 Jan 2005

Re: [Templates] Pass page template data structure to library template?
Andy Wardley 18:42 on 14 Jan 2005

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52