From: Dave Howorth Sent: 13 July 2006 15:49 > > 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)
Oh, thats nice, didn't know about those options. > 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. Hmmm, probably not prepared to stop that. Looks like I might have to learn some of the internals and attempt a patch... Cheers :) mark -- MARK ADDISON WEB DEVELOPER 200 GRAY'S INN ROAD LONDON WC1X 8XZ UNITED KINGDOM T +44 (0)20 7430 4678 F E [EMAIL PROTECTED] WWW.ITN.CO.UK Please Note: Any views or opinions are solely those of the author and do not necessarily represent those of Independent Television News Limited unless specifically stated. This email and any files attached are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [EMAIL PROTECTED] Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read messages sent to and from our systems. Thank You. _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
