[Catalyst] C::P::StackTrace eats template exceptions?

Justin Guenther jguenther at gmail.com
Mon Jul 17 07:48:23 CEST 2006


> -----Original Message-----
> From: catalyst-bounces at lists.rawmode.org 
> [mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of 
> Daniel Westermann-Clark
> Sent: July 15, 2006 9:58 PM
> To: catalyst at lists.rawmode.org
> Subject: [Catalyst] C::P::StackTrace eats template exceptions?
> 
> Hi,
> 
> I upgraded to Catalyst::Plugin::StackTrace 0.05 earlier 
> tonight and ran into a slight problem with a TT template I 
> was working on.
> 
> The template uses Template::Plugin::File to display an 
> (optional) set of images; as mentioned in its documentation, 
> it throws a Template::Exception when the file does not exist. 
>  In the template:
> 
> [% TRY %]
>   [% USE File(c.path_to('root', 'static', 'images', 
> 'nonexistent.jpg')) %]
>   <img src="[% c.uri_for('/static/images/nonexistent.jpg') 
> %]" /> [% CATCH %]
>   No image...
> [% END %]
> 
> Using Catalyst::Plugin::StackTrace 0.04 this would display 
> "No image...".  With 0.05 this displays the img tag.

Thanks, I'll take a look at this tomorrow

 
> --
> Daniel Westermann-Clark
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list