You can do a TRY block.  But you must catch the error.

TRY;
  PROCESS FOO;
CATCH;
  '';
END;

>  
> 
>  
> 
> Template 2 (bar.tt):
> 
> [% PROCESS foo IF foo.defined # in other words if the block foo exists
> %]
> 
>  
> 
> In this case TT will not compile if the BLOCK foo doesn't exist in
> foo.tt.  Is there a way in TT code to prevent that compilation error?
> 
>  
> 
> Thanks,
> 
> -Derrek 
> 
> 


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

Reply via email to