Let's say I have the following template:
<html>
<head><title>[% title %]</title></head>
<body>[% INCLUDE "$site/$body" %]</body>
</html>
If "$site/$body" is not found, I currently have a DEFAULT template set in
the constructor:
Template->new(
{
INCLUDE_PATH => $some_include_path,
DEFAULT => $some_default,
PLUGIN_BASE => 'Onsite::Template::Plugin',
OUTPUT => \$self->{_output}
}
);
The problem I have is that I want need to be automatically notified when a
template fails to load (which is easy if I point the default template at a
plugin), but I would like to know *which* template failed to load. In other
words, with the above code, how would I pass the value of "$site/$body" to
the $some_default template?
--
Cheers,
Curtis Poe
Senior Programmer
ONSITE! Technology, Inc.
www.onsitetech.com
503-233-1418
Taking e-Business and Internet Technology To The Extreme!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates