[Templates] How To Throw Exception on Missing Method

Matisse Enzer menzer@apple.com
Wed, 25 Jul 2007 13:30:46 -0700


(re-posted because I stoopidly left out the Subject on the prior  
posting. I apologize.)

How do get Template Toolkit to throw an exception if it encounters a  
call to a non-existent method?

In the following example  zoo   is an object, but there is no    
get_animals()  method - so I want TT to throw an exception at that  
point.

            [% FOREACH animal IN zoo.get_animals %]



------------------------------------
Matisse Enzer
menzer@apple.com