Randal L. Schwartz wrote:
"Thomas" == Thomas Falgout <[EMAIL PROTECTED]> writes:
Thomas> Instead of substituting a blank, how can I get $template->process() to
Thomas> give me an error if there's any variables that aren't defined? I know
Thomas> that I shouldn't have any missing variables, but I'm developing the
Thomas> interface and someone else is developing the templates. Sometimes
Thomas> there's missing info. I'd like to be able to find out when I've
Thomas> missed something, rather than Templates blindly putting in blank vars.
You might be able to subclass Template::Stash and override ->get so that it
yells if an undef value is returned.
Don't write any code, just set the config option DEBUG_UNDEF. Or am I
missing something?
Cheers, Dave
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates