[Templates] Template::Plugin::XML::Writer

Dave Howorth dhoworth@mrc-lmb.cam.ac.uk
Thu, 13 Jul 2006 15:49:21 +0100


Addison, Mark wrote:
> Of course, it gets the syntax checking that templates normally do.
> The main issue I see here is calling non-existant methods doesn't
> error, but you get this with passed in objects in vars as much as
> plugins. (I'd like a safe option that caused a template error
> if you called a missing method.)

You can always turn on undef checking :) (DEBUG_UNDEF)

I don't because I write Perl-style [% IF some_variable_is_defined ; %] 
expressions, but if you're prepared not to do that, you can trap 
undefined variables.

Cheers, Dave